Unable to switch context to web view for Outlook App

Unable to switch context to web view for Outlook App

Unable to switch context to web view for Outlook App

Train Asked on January 29, 2017 in Appium.
Add Comment
  • 1 Answer(s)

    hi snpanigrahi9,
    Please try this
    Set<String> contextNames = ((AppiumDriver) driver).getContextHandles();
    for (String contextName : contextNames) {
    System.out.println(contextName);
    if (contextName.contains(“WEBVIEW”)){
    ((AppiumDriver) driver).context(contextName);
    }
    //System.out.println(contextName);
    }

    Default Answered on March 30, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.