I am using appium for automating hybrid app and I switched my context to web view to use the attributes to find the x path. In my application when user traverse from one page to another page the index value of the attribute for Eg, in my first login the xpath is //[@id=createAccount] and when I go to the next page, then I came back to the login page the xpath is changed to (//[@id=createAccount])[2]. How can I solve this issue.
I am trying to use the id attribute of the application that is present in the web view , in native view, is it possible to use the web view attributes in native view
s thamaraibharani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.