Cannot recognize webview context on iOS 13
See original GitHub issueThe problem
I saw that @imurchie published his code into latest beta version in #13285 , but I’m still stuck at switching into the webview context. I managed to see the webview on Safari developer menu
Environment
- appium@beta
% npm list -g appium-remote-debugger
/usr/local/lib
`-- appium@1.16.0-beta.1
+-- appium-ios-driver@4.4.0
| `-- appium-remote-debugger@4.5.0
+-- appium-xcuitest-driver@3.6.1
| `-- appium-remote-debugger@6.7.0
`-- appium-youiengine-driver@1.2.1
`-- appium-xcuitest-driver@2.133.1
`-- appium-remote-debugger@5.7.0
% npm --versions
{
npm: '6.13.0',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
llhttp: '1.1.4',
modules: '72',
napi: '5',
nghttp2: '1.39.2',
node: '12.12.0',
openssl: '1.1.1d',
tz: '2019a',
unicode: '12.1',
uv: '1.32.0',
v8: '7.7.299.13-node.12',
zlib: '1.2.11'
}
- Mac 10.15.1 & Xcode Version 11.2.1 (11B500)
- iOS 13.2.3 (iPhone 6s)
Link to Appium logs
See this gist log
Code To Reproduce Issue
Just call to get the available contexts (see more in log)
GET /wd/hub/session/54f250eb-5274-4a3a-92f9-0a6b1e65d5e5/contexts
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Unable to find WEBVIEW context with iOS 13 · Issue #14178
The problem I am unable to find WEBVIEW context using driver.contexts. It only shows ['NATIVE_APP'] using get_all_context.
Read more >Context cannot find webviews on 1.3.1 on iOS - Issues/Bugs
I am unable to find webviews using context. Set<String> contextNames =webDriver.getContextHandles(); System.out.println(contextNames.size()) ...
Read more >Cannot find WebViewContext for WkWebView on iOS ...
I have an ios app that first starts the webview directly. When I then try to switch the context, Appium doesn't find the...
Read more >WKWebView | Apple Developer Documentation
A web view supports a full web-browsing experience, and presents HTML, CSS, and JavaScript content alongside your app's native views.
Read more >I'm only able to see NATIVE_APP context, how do I get ...
Often, during an automated iOS test, it could be helpful to use WEBVIEW contexts in order to faster execute your tests. WEBVIEWs load...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank @mykola-mokhnach , latest beta can recognize my webview. You can see the log here
@trinhpham Can you try re-installing the beta?