Search code examples
selendroid

Unable to find IDs of a hybrid App


I have been using Selendroid; it works perfectly for native apps, but for some of the hybrid apps, it is not working properly. With the Employee Directory.apk, Selendroid Inspector works fine (able to get all the IDs), but for another hybrid app which I am trying, Inspector is not able to show the element IDs. Workaround: somehow I got the ID of a button (of a hybrid app) and am able to click on the button, but I want to get the ID from the Selendroid Inspector.

What could be the reason why the Inspector is unable to show these IDs?


Solution

  • When it comes to hybrid apps. Some of the buttons might not have ids. It all depends if the developer added the ID. So you have to resort to cssSelectors, xpath or smth else. I asked the developer of the app i was testing to add id's to the button.