- 微信公众号切换webview失败怎么解决?
java+appium+夜神模拟器7.0.26+微信8.0.23 公众号。 自动点击到webview页面时,driver.getContextHandles() 可以获取到 "WEBVIEW_com.tencent.mm:toolsm"。但我尝试用driver.context()切换时报错。 报错内容为 io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @webview_devtools_remote_.*8257 (make sure the app has its WebView configured for debugging) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'LAPTOP-T2ITR6SI', ip: '132.122.238.136', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_221' Driver info: io.appium.java_client.android.AndroidDriver Capabilities {appActivity: com.tencent.mm.ui.LauncherUI, appPackage: com.tencent.mm, databaseEnabled: false, desired: {appActivity: com.tencent.mm.ui.LauncherUI, appPackage: com.tencent.mm, deviceName: 127.0.0.1:62001, noReset: true, platformName: android, platformVersion: 7.1.2, resetKeyboard: true, unicodeKeyboard: true}, deviceApiLevel: 25, deviceManufacturer: samsung, deviceModel: SM-G988N, deviceName: 127.0.0.1:62001, deviceScreenDensity: 480, deviceScreenSize: 1440x2560, deviceUDID: 127.0.0.1:62001, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, noReset: true, pixelRatio: 3, platform: LINUX, platformName: Android, platformVersion: 7.1.2, resetKeyboard: true, statBarHeight: 72, takesScreenshot: true, unicodeKeyboard: true, viewportRect: {height: 2488, left: 0, top: 72, width: 1440}, warnings: {}, webStorageEnabled: false} Session ID: 6f5230dd-d818-4e84-ab0d-c42c6ee7bbd0。 请问我该怎么解决
2022-06-08 - 怎么查看微信的webview?
我在进行微信公众号的自动化测试,需要定位公众号页面元素。但是我查看不到公众号的webview。 已经尝试过 debugx5.qq.com–>http://debugtbs.qq.com–>debugmm.qq.com/?forcex5=true [图片] 已经开启了x5但打开x5内核调试仍然显示错误信息 [图片] 通过浏览器查看微信的webview需要开启x5内核嘛? 现在开启不了怎么处理? 环境:夜深模拟器,微信8.0.21 通过浏览器查看webview
2022-05-29