Switching to webview-io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: operation timed out

I am testing Hybrid iOS app on real device, i’m getting both the context NATIVE_APP and WEBVIEW but when i try to switch to webview using driver.context method it is throwing Exception “io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: operation timed out”

Environment

  • appium version: 1.13.0
  • Node Js version: v10.15.3
  • Mobile platform: iOS 12.3.1