我正在尝试从某个门户网站获取交易状态,并且我在我的 java 应用程序中使用下面的 chrome 设置,我正在获取
I am trying to get status of transactions from some web portal and I am using below chrome settings in my java application and I am getting
从渲染器接收消息超时:60.000
Timed out receiving message from renderer: 60.000
所有待处理的事务都在超时.
and all the pending transactions are timing out.
会话信息:无头 chrome=68.0.3440.75
驱动程序信息:chromedriver=2.38 (0)
platform=Linux 2.6.32-696.23.1.el6.x86_64 x86_64)
Session info: headless chrome=68.0.3440.75
Driver info: chromedriver=2.38 (0)
platform=Linux 2.6.32-696.23.1.el6.x86_64 x86_64)
我如何处理这个问题,如果发生任何超时,然后转到下一个事务?
How i can handle this and if any timeout is happening then move to next transaction?
我已经尝试了以下语句的所有排列和组合,但仍然无法正常工作;
I have tried all permutation and combinations with below statements but still its not working;
options.addArguments("headless");
options.addArguments("disable-gpu");
WebDriver driver = new ChromeDriver(caps);
TimeUnit.SECONDS.sleep(1);
driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);
driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);
这个错误信息...
Timed out receiving message from renderer: 60.000
...暗示 ChromeDriver 无法启动/生成新的 WebBrowser 即 Chrome 浏览器 会话.
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
您的主要问题是您使用的二进制文件版本之间的不兼容性,如下所示:
Your main issue is the incompatibility between the version of the binaries you are using as follows:
支持 Chrome v65-67
支持 Chrome v67-69
所以 ChromeDriver v2.38 和 Chrome 浏览器 v68.0
@Test
.@Test
.这篇关于从渲染器接收消息超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!