我正在尝试通过Selenium中的browsermobproxy启动chrome驱动程序请求,并且我总是注意到页面无法加载的“页面未加载”问题。 Chrome浏览器打开并关闭。
任何建议都会很有帮助。预先感谢。
使用的跟随罐子
硒3.141
slfj4-nop 1.7.26
浏览器核心2.1.5
我注意到以“ .har”文件编写的“ noresponse”日志。
记录如下
'''
[RemoteTestNG] detected TestNG version 6.14.3
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 37449
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1564564971.546][WARNING]: This version of ChromeDriver has not been tested with Chrome version 75.
Jul 31, 2019 2:52:52 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Navigate to selenium tutorials page
FAILED: testCaseOne
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"link text","selector":"Selenium"}
(Session info: chrome=75.0.3770.142)
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'''
预期结果:通过browsermob代理运行时,页面应在chrome浏览器上正确打开