Selenium webdriver 无法使用Appium 1.6从微调器中选择选项

Selenium webdriver 无法使用Appium 1.6从微调器中选择选项,selenium-webdriver,automated-tests,appium,android-testing,android-uiautomator,Selenium Webdriver,Automated Tests,Appium,Android Testing,Android Uiautomator,我正在使用Appium 1.6自动化Android UI测试 在此图像中,我无法从微调器中选择任何国家(例如:日本) 这是我正在使用的代码: driver.findElement(By.id("com.akkipet.android:id/country_spinner__add_information")).click(); driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector(

我正在使用Appium 1.6自动化Android UI测试

在此图像中,我无法从微调器中选择任何国家(例如:日本)

这是我正在使用的代码:

driver.findElement(By.id("com.akkipet.android:id/country_spinner__add_information")).click();    
driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector()).scrollIntoView("+ "new UiSelector().text(\"India\"));")).click()
我做错了什么?单击微调器后,虽然我无法读取国家值,但我可以读取其他字段,如名字、姓氏等

现在,我正在使用点击功能点击特定坐标以选择所需选项。但这将使其成为特定于设备的。此外,由于选项列表因环境而异,因此我必须为每个环境提供一组不同的坐标

Tap的代码:

touchAction.tap (200, 850).perform();

有人能提出更好的解决方法吗?

试试这个。这对我有用。
driver.findElement(By.id(“com.akkipet.android:id/country\u spinner\u add\u information”)。单击()

driver.findElement(按.name(“印度”))。单击()
By.Name
已被弃用。尝试使用
findElementByAndroidUIAutomator

例如:


发布您的appium日志您到底需要哪些日志?正如我提到的appium日志,意味着appium服务器已满日志延迟这里是我的appium日志:这是一个混合应用程序吗?我尝试过使用它,但在appium 1.6.5中,它已被弃用。
driver.findElementByAndroidUIAutomator("new UiSelector().text("India")").click();