1

There are 1 best solutions below

0
On

The screen that you're inspecting is a web view. You can directly automate this by switching the driver context and you may try inspecting after connecting your device using following way.

  1. Android -> chrome://inspect/#devices
  2. Safari -> develop menu

For switching driver context:

Set<String> contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
  if (contextName.contains("WEBVIEW"))
      DriverFactory.driver.context(contextName);
}

Hope this helps. Cheers