I am new to Android testing. I am currently trying to automate a scenario. I have attached the snapshot of the app screen:
Scenario:
The developer is saying that it is a Hybrid app. A lot of confusion here for me as I am able to click on "Clock In", but I am not able to select "DL 380 Memory Upgrade".
Doubts:
If it is an element in the webview, how to locate it? I located "CLOCK IN" as below:
@AndroidFindBy(xpath = "//android.view.View[@resource-id='tab-t0-0']")
private AndroidElement clockInTabBtn;
If its an element in WebView, then its web and you won't find anything in web while searching by resource-id - its native attribute only.
I would recommend to use chrome dev tools for debugging hybrid application. You can read official docs for setup.
Basically you need:
chrome://inspect/#devices
in chrome browserinspect
for the one you need
Good luck!