search

Home  >  Q&A  >  body text

WebDriverException: Unable to find open page error, unknown error when using ChromeDriver 80.0.3987.106 and Chrome 80.0.3987.122

<p>My local Windows 10 computer automatically updated the Chrome version to 80.0.3987.122 (official version) (64-bit)</p> <p>I am using https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_win32.zip</p> <p>But now I get this error:</p> <pre class="brush:php;toolbar:false;">Please protect the ports used by ChromeDriver and related test frameworks to prevent malicious code from accessing them. org.openqa.selenium.WebDriverException: Unknown error: Unable to discover open page Build information: Version: '3.141.59', Revision: 'e82be7d358', Time: '2018-11-14T08:17:03' System Information: Hostname: 'WX-PC123456', IP Address: '192.168.56.1', OS: 'Windows 10', Architecture: 'amd64', Version: '10.0', Java Version: '1.8.0_211' Driver information: Driver version: ChromeDriver Remote stack trace: Backtrace: Ordinal0 [0x013A0C83 1707139] Ordinal0 [0x013068F1 1075441] Ordinal0 [0x0127DFC9 516041] Ordinal0 [0x012104C2 66754] Ordinal0 [0x0120CCE2 52450] Ordinal0 [0x0122BFD7 180183] Ordinal0 [0x0122BDDD 179677] Ordinal0 [0x01229D4B 171339] Ordinal0 [0x01211D4A 73034] Ordinal0 [0x01212DC0 77248] Ordinal0 [0x01212D59 77145] Ordinal0 [0x0131BB67 1162087] GetHandleVerifier [0x0143A966 508998] GetHandleVerifier [0x0143A6A4 508292] GetHandleVerifier [0x0144F7B7 594583] GetHandleVerifier [0x0143B1D6 511158] Ordinal0 [0x0131402C 1130540] Ordinal0 [0x0131D4CB 1168587] Ordinal0 [0x0131D633 1168947] Ordinal0 [0x01335B35 1268533] BaseThreadInitThunk [0x757E8674 36] RtlGetAppContainerNamedObjectPath [0x77475E17 311] RtlGetAppContainerNamedObjectPath [0x77475DE7 263]</pre> <p>How to solve this problem? </p>
P粉950128819P粉950128819455 days ago640

reply all(2)I'll reply

  • P粉231079976

    P粉2310799762023-08-26 09:19:59

    If you are using

    --remote-debugging-port

    Try to change the port number. The port number currently used may be occupied.

    reply
    0
  • P粉792673958

    P粉7926739582023-08-26 00:33:28

    This error message...

    org.openqa.selenium.WebDriverException: 未知错误: 无法发现打开的页面
    构建信息: 版本: '3.141.59', 修订版本: 'e82be7d358', 时间: '2018-11-14T08:17:03'
    系统信息: 主机: 'WX-PC123456', IP: '192.168.56.1', 操作系统: 'Windows 10', 架构: 'amd64', 版本: '10.0', Java 版本: '1.8.0_211'
    驱动信息: 驱动版本: ChromeDriver
    远程堆栈跟踪: 回溯:
        Ordinal0 [0x013A0C83+1707139]

    ...means ChromeDriver cannot initialize/generate a new browsing context, i.e. Chrome Browser session.

    It seems that the problem lies in the security feature of ChromeDriver, namely sandboxing. To bypass this feature, you can use the following parameters:

    --no-sandbox

    So your valid code block would be:

    • Java

      options.addArguments("--no-sandbox"); # 绕过操作系统安全模型
    • Python

      options.add_argument('--no-sandbox') # 绕过操作系统安全模型

    reply
    0
  • Cancelreply