Cannot switch to WebView context using SeeTestIOSDriver on iPhone6

Is it possible to switch to webview context when using the SeeTestIOSDriver
to run tests with Appium Studio? I am running the below code and it only
finds the NATIVE context.

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

I can’t execute any of my test scripts for my hybrid app because of this.

Eg: cannot execute:

driver.findElement(By.cssSelector(""))

The getContexHandles is currently not working. It will be supported in our next version that is going to be release next week (10.9).
Currently you can just use:
driver.context(“WEBVIEW”);

I would also recommend you to instrument your hybrid application, this way - webview context will be visible for you during runtime

https://docs.experitest.com/display/public/AS/Application+Setup

https://docs.experitest.com/display/AS/Instrumenting+iOS+Applications

Thanks but I tried all the suggested options but none worked. Where can I get the 10.9 version? Do you have a code example for a test run in webview context?

can you send us an example of your application and scenario?

or else :

  1. which device are you working on (iOS \ Android)
  2. Do you have the source code of your application?

Hi,

The web context is defined as “WEBVIEW_1”.

Switching to web context - driver.context("WEBVIEW_1");

In the conditional line simply change the parameter:
if (contextName.contains("WEBVIEW_1"))