Selenium Ending a message from a visualizer

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.

+19
source share
10 answers

Check out JS Runtime

First make sure you are not executing / a eval()lot of JavaScript. This may cause a timeout.

Check Version Compatibility

First check your versions:

  • Selenium
  • Jdk
  • Chrome driver
  • 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):

Check driver initialization

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);

:

+34

, Chrome. Chromeoption disable-gpu . , Google ( ) , --disable-gpu ChromeOptions.

EDIT: , .

+5

, 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);
+4

Chrome 72 73 :

Timed out receiving message from renderer: 600.000

, Jenkins ( ), .

Firefox, , Chrome. Chromium 946441: Chromedriver: Selenium + Chrome + Jenkins ( SYSTEM)

, , .

+2

. , Chrome :

options.addArguments("--no-sandbox");
+2

- https, chromedriver -,

option.addArguments("enable-features=NetworkServiceInProcess")

,

option.addArguments("disable-features=NetworkService") 

https://groups.google.com/forum/#!topic/chromedriver-users/yHuW_Z7tdy0

+1

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

, :

  • Chrome v65, -. , -.

  • --disable-browser-side-navigation Chrome.

  • ChromeDriver 2.33, -disable-browser-side-navigation.

0

, , , , , , Chrome, , chromedriver, , 1024px 2000px , 2048px 4000px, , - , ( ). . , () Chrome Retina, , , , , , 8 13 , ( ) , . ChromeOptions:

options.addArguments("--force-device-scale-factor=1");
0

Chromedriver, , , Chrome Selenium: Firefox (Geckodriver). Chromedriver :

from selenium.webdriver.firefox.options import Options
options = Options()
options.headless = True
browser = webdriver.Firefox(options=options)

().

0

java pageLoadStrategy NONE , . , :

options.setPageLoadStrategy(PageLoadStrategy.NONE);

// ...

driver.get("url.of.a.website");
Thread.sleep(10000); // manual wait

// do something else

, ,

0

Source: https://habr.com/ru/post/1692732/


All Articles