Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No WebView Context in "Get Contexts" result #403

Open
yullyayu01 opened this issue Aug 9, 2023 · 2 comments
Open

No WebView Context in "Get Contexts" result #403

yullyayu01 opened this issue Aug 9, 2023 · 2 comments

Comments

@yullyayu01
Copy link

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
Copy link

baselalali commented Aug 30, 2023

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants