Appium 无法在 Android 上切换上下文 webview

vanlong-nox · May 08, 2019 · Last by vanlong-nox replied at May 10, 2019 · 1318 hits

问题
我在EDGE浏览器Android上测试自动化。 我无法切换到WEBVIEW,我尝试了很多版本但失败了。

我不懂中文. 遗憾.

我在这里创建了帖子, https://github.com/appium/appium/issues/12521

我知道这是一个很大的社区,希望得到所有人的帮助。

共收到 8 条回复 时间 点赞

这个~~外国友人都开始来逛testerHome了么😀

@yuan
是的,在google上搜索时,我了解了testerHome社区. 😜
(topic: https://testerhome.com/topics/6954)

@Jacc
Thanks, I also switched to webview in the Bootstrap app, but it can't be with Edge 😓

vanlong-nox 回复

I guess webview debug setting is disabled by default in Edge.

https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

vanlong-nox 回复

neither can I

vanlong-nox 回复

Hi, you can speak english here, most people can understand.

vanlong-nox 回复
  ~
curl \
-d '{"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.microsoft.emmx","androidActivity":"com.microsoft.ruby.Main","androidDeviceSerial":"R28M31Y995A"}}}' \
-H "Content-Type: application/json" \
-XPOST http://localhost:9515/session
{"sessionId":"cde6962a7360107f1399fa716f47e1d2","status":13,"value":{"message":"unknown error: Failed to get sockets matching: @webview_devtools_remote_.*27586\n (make sure the app has its WebView configured for debugging)\n (Driver info: chromedriver=75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/3770@{#40}),platform=Mac OS X 10.14.4 x86_64)"}}%

Seems Edge not has its WebView configured for debugging

thanks everyone. 😄
we should stop, waiting for the new version of Edge.
TesterHome, Thanks very much!

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up