Hi,
Please provide us suggestions on how to find the button id of a non-native app developed using phonegap (hybrid app) because we can’t inspect elements like buttons, textboxes in such apps. Thanks in advance.
Use Chrome to inspect the webview so you can find id and other locators for web elements.
Hi Simon,
Thanks for your reply, actually i am testing a mobile app and not a web application. I want to find the id of the login button for an android app developed through phonegap.
Note :- I am able to find the id of the button in native android app.
Many thanks.
Hybrid apps use a webview which given the app is debuggable, should allow you to find and interact with elements from within the app.
Make sure you’re setting the correct context before trying to find element or it will be looking for those elements in the native app context.