appium / appium-uiautomator2-server

Appium UiAutomator/UiObject2-based server for Android UI automation. This module is used by appium-uiautomator2-driver component
Apache License 2.0
329 stars 233 forks source link

Xpath Strategy works with UIautomator but same xpath does not work with UIautomator2 #110

Open RameshY703 opened 6 years ago

RameshY703 commented 6 years ago

'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @instance='1']")).sendKeys("Hello");' used to work in UIautomator and same thing is not working in UIautomator2. But When I use 'driver.findElement(By.xpath("//[@class='android.widget.EditText' and @text='Password']")).sendKeys("Hello"); ' work in both.Appium version is 1.72 and uiatomator server is 0.3.0

jamesknowsbest commented 5 years ago

Can you add your appium server logs and any stack traces in a github gist?