The difference between an accessibilityID and an Xpath can be almost 10X! Element location on iOS mobile When possible, this is the recommended locator because Hence, it’s possible that simply by using XPath the test will be 10X slower! Accessibility ID I’ve seen a 10X difference between using an Accessibility ID and XPath. Furthermore, with XCUITest driver, used for iOS, it will be extremely slow. should be avoided because it will be “invalidated by pretty much any change to your app hierarchy”. Mobile Automation Best Practices Element Location StrategiesĪccording to this article, this is the preference for element locators in terms of speed: Appium tutorial series by Jonathan Lipps (Appium creator).Appium code examples in all of the different languages.Appium Desktop tutorial by J Lipps from 2017.Appium Desired Capabilities that you can configure in your test automation code.
0 Comments
Leave a Reply. |