-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way we can use starts-with or contains in Xpath for @AutomationId #82
Comments
valid example Invalid unless the robot has admin privilages for some apps (maybe). Otherwise it should also work fine |
Thanks I am able to find the xpath with //Button[contains(., 'this the name or the id')]. Is there any we can loop through the elements, If more elements are found for the above condition. I want to validate whether the first occurrence of the Id has specific parameters and second has different parameters. Tried using //Button[contains(., 'this the name or the id')][2 or 3] it didn't work, it was able to find the first occurrence only. |
Currently we support only first occurence. Which should be enough because usually in app (gui under test) side, if it is ui automation friendly. It should always support unique automationid or name for specific element. Thus the element will have an unique xpath which can not occure more than once. |
can we use starts-with or contains in Xpath for @AutomationId, currently it works with @name
The text was updated successfully, but these errors were encountered: