Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;“线程中的异常”;“主要”;org.openqa.selenium.WebDriverException:断开连接:已接收Inspector.Distached事件;使用SeleniumJava_Java_Selenium_Selenium Chromedriver_Ui Automation - Fatal编程技术网

&引用;“线程中的异常”;“主要”;org.openqa.selenium.WebDriverException:断开连接:已接收Inspector.Distached事件;使用SeleniumJava

&引用;“线程中的异常”;“主要”;org.openqa.selenium.WebDriverException:断开连接:已接收Inspector.Distached事件;使用SeleniumJava,java,selenium,selenium-chromedriver,ui-automation,Java,Selenium,Selenium Chromedriver,Ui Automation,我在mac OS(Catalina 10.15.7)上使用Selenium Java w/chromedriver时一直遇到这个错误 我在谷歌上搜索过,有人说当你在谷歌浏览器上打开Chrome开发者工具时,就会发生这种情况。我没有打开任何窗口,但它仍在发生 我正在使用谷歌Chrome版本91.0.4472.77和chromedriver版本91.0.4472.19。你知道这是怎么回事吗?有时我可以让应用程序成功运行1个tie,但90%的时间它会引发此异常-发生了什么事?在chromeOption

我在mac OS(Catalina 10.15.7)上使用Selenium Java w/chromedriver时一直遇到这个错误

我在谷歌上搜索过,有人说当你在谷歌浏览器上打开Chrome开发者工具时,就会发生这种情况。我没有打开任何窗口,但它仍在发生


我正在使用谷歌Chrome版本
91.0.4472.77
chromedriver版本
91.0.4472.19
。你知道这是怎么回事吗?有时我可以让应用程序成功运行1个tie,但90%的时间它会引发此异常-发生了什么事?

chromeOptions中,当初始化chromedriver时,添加以下内容:

chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE);

让我知道这是否有帮助。

事实上,我认为现在确实有帮助了。
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE);