Home > Back-end >  How to inspect calendar elements - Chrome /android?
How to inspect calendar elements - Chrome /android?

Time:11-20

I am using chrome dev tool to inspect web mobile elements. But I can't inspect calendar using chrome dev tool (chrome://inspect/#devices). It doesn't show up the calendar. I want to click 'Set' button on the calendar. but unable to find the lcator for that. Is there a way to find the locator on the calendar? Check this image

CodePudding user response:

There is an "Emulate a focused page" option in ChromeDevTools, did you try that?

CodePudding user response:

The solution for this problem is switching the context to NATIVE APP. Calendar can inspect via appium inspector and use native app locators to select the date. Once the date is selected switch context again to CHROMIUM/WEB.

    Set<String> contextNames = driver.getContextHandles();
        driver.context((String) contextNames.toArray()[1]);
        driver.context("NATIVE_APP");
  • Related