Hi,
I am trying to switch to web view context to interact with few web elements in the hybrid app. I am using the debug build and I am able to get all the web view and native contexts. Only when I am trying to switch to the web view context, it throws the time out exception. The configuration is as follows. I have also attached the log. I was not facing this issue in the older version(1.7) of appium.
cap.setCapability("deviceName", "*****");
cap.setCapability("deviceOrientation", "portrait");
cap.setCapability("platformVersion", "12.2");
cap.setCapability("platformName", "iOS");
cap.setCapability("udid", "********");
cap.setCapability("bundleId", "******");
cap.setCapability("automationName", "XCUITest");
cap.setCapability("newCommandTimeout", "120");
cap.setCapability("webkitResponseTimeout", "20000");
I am using Appium version 1.13.0, Xcode version 10.2.1, Appium Java client 6.1.0, Selenium version 3.141.59.
When driver.context(s); is executed, it throws following exception
io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: operation timed out
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘*******’, ip: ‘********’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.5’, java.version: ‘1.8.0_25’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {automationName: Appium, browserName: , bundleId: ********, databaseEnabled: false, deviceName: ********, deviceOrientation: portrait, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 120, platform: MAC, platformName: iOS, platformVersion: 12.2, takesScreenshot: true, udid: ***********…, webStorageEnabled: false, webkitResponseTimeout: 20000}
Session ID: 909d73ee-ff55-4d35-8777-05b9e675a1df
at io.appium.java_client.AppiumDriver.context(AppiumDriver.java:201)
at TestScript.main(TestScript.java:43)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: operation timed out
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘’, ip: '’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.5’, java.version: ‘1.8.0_25’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {automationName: Appium, browserName: , bundleId: *************, databaseEnabled: false, deviceName: *************, deviceOrientation: portrait, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 120, platform: MAC, platformName: iOS, platformVersion: 12.2, takesScreenshot: true, udid: *************…, webStorageEnabled: false, webkitResponseTimeout: 20000}
Session ID: 909d73ee-ff55-4d35-8777-05b9e675a1df
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at io.appium.java_client.AppiumDriver.context(AppiumDriver.java:198)
… 1 more