After Chrome released its latest version yesterday (64.0.3282), now I get this error quite sporadically:
Preset message from visualizer: 600,000
I have about 2,000 selenium tests running in the docker container, and I see this crash at a rate of about 1 in 100. As far as I can tell, there are no reproducible steps - the tests that fail are different with each iteration, I updated until the newest Chromedriver (2.35), but it showed no effect. I used to use Selenium 2.41, but upgraded to the latest version (3.8.1), hoping this might help ... it is not. I absolutely do not understand why this can happen. Has anyone else noticed this? Perhaps this is a bug with the latest version of Chrome?
Thanks in advance for any help you can provide.
First make sure you are not executing / a eval()lot of JavaScript. This may cause a timeout.
eval()
First check your versions:
Chrome
all compatible. Good luck with this because there is no single place that documents this, and Selen software is not smart enough to quickly check (should):
Add this cryptic block of code, which I would like to call "an ever-growing list of useless arguments."
, - , : 2018 .
// ChromeDriver is just AWFUL because every version or two it breaks unless you pass cryptic arguments //AGRESSIVE: options.setPageLoadStrategy(PageLoadStrategy.NONE); // https://www.skptricks.com/2018/08/timed-out-receiving-message-from-renderer-selenium.html options.addArguments("start-maximized"); // /questions/240872/cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer/1250043#1250043 options.addArguments("enable-automation"); // /questions/240872/cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer/1250048#1250048 options.addArguments("--headless"); // only if you are ACTUALLY running headless options.addArguments("--no-sandbox"); ///questions/7368906/orgopenqaseleniumwebdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-trying-to-initiate-chrome-browser/14388002#14388002 options.addArguments("--disable-infobars"); ///questions/240872/cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer/1250048#1250048 options.addArguments("--disable-dev-shm-usage"); ///questions/7368906/orgopenqaseleniumwebdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-trying-to-initiate-chrome-browser/14388002#14388002 options.addArguments("--disable-browser-side-navigation"); ///questions/1692732/selenium-timed-out-receiving-message-from-renderer/4902966#4902966 options.addArguments("--disable-gpu"); ///questions/16279301/how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-exception driver = new ChromeDriver(options);
:
, Chrome. Chromeoption disable-gpu . , Google ( ) , --disable-gpu ChromeOptions.
EDIT: , .
, Chrome: 73.0.3683.86 ( ) (64- ). - Jenkins, , Chrome, (ChromeDriver : - 73.0.3683.68):
ChromeOptions options = new ChromeOptions(); options.addArguments("enable-automation"); options.addArguments("--headless"); options.addArguments("--window-size=1920,1080"); options.addArguments("--no-sandbox"); options.addArguments("--disable-extensions"); options.addArguments("--dns-prefetch-disable"); options.addArguments("--disable-gpu"); options.setPageLoadStrategy(PageLoadStrategy.NORMAL);
Chrome 72 73 :
Timed out receiving message from renderer: 600.000
, Jenkins ( ), .
Firefox, , Chrome. Chromium 946441: Chromedriver: Selenium + Chrome + Jenkins ( SYSTEM)
, , .
. , Chrome :
options.addArguments("--no-sandbox");
- https, chromedriver -,
option.addArguments("enable-features=NetworkServiceInProcess")
,
option.addArguments("disable-features=NetworkService")
https://groups.google.com/forum/#!topic/chromedriver-users/yHuW_Z7tdy0
Timed out receiving message from renderer: aka Net::ReadTimeout 100% Cucumber, Jenkins, , docker selenium/standalone-chrome 2018 . - disable-gpu ChromeOptions , --disable-browser-side-navigation, 100%. : https://bugs.chromium.org/p/chromedriver/issues/detail?id=2239#c10
Timed out receiving message from renderer:
Net::ReadTimeout
--disable-browser-side-navigation
, :
Chrome v65, -. , -.
--disable-browser-side-navigation Chrome.
ChromeDriver 2.33, -disable-browser-side-navigation.
, , , , , , Chrome, , chromedriver, , 1024px 2000px , 2048px 4000px, , - , ( ). . , () Chrome Retina, , , , , , 8 13 , ( ) , . ChromeOptions:
options.addArguments("--force-device-scale-factor=1");
Chromedriver, , , Chrome Selenium: Firefox (Geckodriver). Chromedriver :
from selenium.webdriver.firefox.options import Options options = Options() options.headless = True browser = webdriver.Firefox(options=options)
().
java pageLoadStrategy NONE , . , :
pageLoadStrategy
NONE
options.setPageLoadStrategy(PageLoadStrategy.NONE); // ... driver.get("url.of.a.website"); Thread.sleep(10000); // manual wait // do something else
, ,
Source: https://habr.com/ru/post/1692732/More articles:Hibernate DefaultEntityAliases raises NullPointerException - javaHow to find the difference between the hour of the day of individual days in a pandas data frame? - pythonAnalyzing date and time when loading DataFrame with pd.read_clipboard - pythonHow to import a JS library into a React application? - javascriptHow to sum specific values in a pandas DataFrame column over a specific date range - pythonLogging into UDF in PySpark - python'this' не определяется в этом контексте - kotlinIs it possible to use AAD authenticated Azure features from Power Bi and Power Apps? - authenticationMobile Chrome Web App - transition to the dark navigation bar of the system - androidWhy does the specialization of a template template depend on the context in which it is passed? - c ++All Articles