Details
-
Test
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently Appium tests use XPath selectors, which are sloppy and buggy. For example, we are forced to select certain elements quite a few times in a row to get the one that we need:
return driver .waitForElementByXPath('//android.widget.TextView[@text="Gallery"]', 20000) .elementByXPath('//android.widget.TextView[@text="Gallery"]') // multiple calls here for an Android bug: .elementByXPath('//android.widget.TextView[@text="Gallery"]') // on Windows + Android emulator, element selection .elementByXPath('//android.widget.TextView[@text="Gallery"]') // is completely wonky. Unfortunately duplicating element() .elementByXPath('//android.widget.TextView[@text="Gallery"]') // calls is the only workaround identified thus far.
Attachments
Issue Links
- links to