Unable to identify elements in Hybrid Apps using name/other locator in Appium Version 1.7.2


#1

Hi,

I am trying to automate a hybrid application and i can able to view the text, Class name and Package name in the UI Automater. But unfortunately there are is no ID for those elements. So when automating if i give the ID as locator then it properly works. But when giving the locator as Name, then it is not working. I see that has been deprecated

Can someone Please let me know how to click on the element which does not have Resource ID in an Hybrid App?


#2

Hi, we are using accessibilityLabel to find elements in our hybrid app.


#3

Thanks. Now it is working for me. I am using CSS Selector, accessibility Label and Xpath for finding the elements

Thanks


#4

In the latest version of appium, inspector shows web view elements as native components(android)
It’s recommended the use actual objects(#id, css, xpath…)inspecting through Chrome dev tools instead of native elements