uiautomator2 icon indicating copy to clipboard operation
uiautomator2 copied to clipboard

u2测微信webview报错无法解决

Open wjzero opened this issue 6 years ago • 4 comments

代码

import uiautomator2 as u2
from atx.ext.chromedriver import ChromeDriver

d = u2.connect()
driver = ChromeDriver(d).driver()

详细报错

driver = ChromeDriver(d).driver(process='com.tencent.mm:toolsmp')
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\atx\ext\chromedriver.py", line 70, in driver
    dr = webdriver.Remote('http://localhost:%d' % self._port, capabilities)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: chrome not reachable
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64)

Issue and steps to reproduce

按照社区大佬们的贴子修改chromedriver, 微信的内核调试也打开了,安卓手机也换了几台。始终报上面的错,google了一圈没有解决,个人能力有限,无法分析出错误原因,无奈之下到此求助~~~ (我是真的快绝望了)

wjzero avatar Nov 23 '18 06:11 wjzero

微信的 webview 走的是自己的内核,,你得改一些东西才可以,,好好搜索一下资料把

HaoweiCh avatar Dec 28 '18 02:12 HaoweiCh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 30 '19 09:04 stale[bot]

请问你解决了么,我也碰到同样问题了 模拟器上没问题,真机上不行

zhizunbao84 avatar Jan 03 '20 08:01 zhizunbao84

@zhizunbao84 版本,webview 的版本贴一下

HaoweiCh avatar Jan 20 '20 09:01 HaoweiCh