serhatbolsu / robotframework-appiumlibrary

AppiumLibrary is an appium testing library for RobotFramework
Apache License 2.0
404 stars 293 forks source link

No WebView Context in "Get Contexts" result #403

Open yullyayu01 opened 1 year ago

yullyayu01 commented 1 year ago

Hi,

I am new to RF and appiumlibray. I run only 2 test steps as:

  1. Open the apk application in iOS simulator (succeeds)
  2. Get Contexts (only NATIVE_APP view)

I am using an ios app with initial native viewcontroller and second view is web view in a native viewcontroller. I assume I should see a WEBVIEW context by Get Contexts command, but there is no as the log result shows below. Without switching to WEBVIEW, it seems no way to interact with elements displayed.

Could somebody tells me why or how to debug it?

..['NATIVE_APP']

Please advise. Thanks in advance.

baselalali commented 1 year ago

Could please provide us the appium logs. Are you sure, that WEB_View pops up by app starting? If yes add appium cap:

autoWebview : true | Move directly into Webview context. Default false | true, false

tchudobova-cen69317 commented 1 month ago

@baselalali @yullyayu01 Hi there! We have encountered a similar issue when accessing iPads. Workaround was to call Get Contexts twice when using an iOS device. However, that should not be necessary.