I’m experiencing slowness with some
locators while running automated tests on an Android app in Katalon Studio. Locator identification seems to take a long time, which is significantly slowing down the test execution.
Locator Strategies: I’m currently using primarily XPath
, but I’ve noticed it’s slower on certain elements.
Device/Environment: The issue is happening on real devices
Katalon Version: I’m facing same issue on 9.7.2 and updated version 10.0.0
If anyone is facing this problem kindly suggest some solution for this .
And sorry for not providing the logs due to client privacy policy.
It’s a well-known issue. Search Google with key “Mobile test XPath slow”. You will get dozens of URL on that topic.
Quoting from Finding Mobile Elements with Robust Appium Locator Strategies and Selectors | by Lana Begunova | Medium
With the XCUITest driver, XPath might be very slow. This is because every time we run an XPath query, the entire app hierarchy must be recursively walked and serialized into XML, which can take a lot of time, especially if our app has many elements.
XPath as a mean to locate native Mobile elements through Appium costs a lot. You should avoid XPath.
Any alternative? Read the article above.