Selenium: org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer

Created on 30 Oct 2017  路  27Comments  路  Source: SeleniumHQ/selenium

Meta -

OS: Windows 7
Selenium Version: 3.0.1
Browser: Chrome
Browser Version: 62.0.3202.75
Chrome driver version : 2.30.477700

Expected Behavior - Chrome browser should maximise and open URL.

Actual Behavior -

Exception in thread "main" org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer

  • Exception occurs at maximise() step .

Steps to reproduce -

public class OpenBrowser
{
public static void main(String args[])
{
WebDriver driver;
System.setProperty("webdriver.chrome.driver","//path to chrome driver");
driver=new ChromeDriver();
driver.manage().window().maximize();
driver.get("http://www.google.com");
}
}

Most helpful comment

Upgrade chromedriver.

All 27 comments

Upgrade chromedriver.

Verified that upgrading chromedriver to version 2.33 fixed this problem.

Even after the update to version 2.33 the maximize action still don't work. If I remove it, all goes well.
driver.manage().window().maximize();

No, actually I'm on Windows 10.

Updating chromedriver and selenium standalone jar fixed this issue for me.
I was using windows 7 and python.

it worked after updating chromedriver..

I was also facing the same issue. I updated my chrome driver to version 2.33 and now it is working fine

For me also, it worked after updating the chrome driver.

I'm using the chromedriver 2.33, and I had to remove the maximize() function to work as expected.

There are someone facing the same problem using the maximize ?

upgrade to chromedriver 2.33 fixed this for me. Download latest and move to node_modules/selenium-standalone/.selenium/chromedriver/

Get rid of old one.

Hi, Even I am getting the same problem for Maximize. I did upgrade the chrome version to 2.33 still getting the error. It is working fine on local machine with the upgrade but when I deploy my test on server through tfs. I am getting this error for maximize. its win 10 on server.

Hi,
I am using Windows 2012 R2 server(64-Bit) . From Jenkins i am trying to run a job where it has to open URL using Robot framework tool. In my Script I used "Maximize Browser Window" Selenium keyword. When the execution comes to this keyword it is constantly failing with "WebDriverException: Message: disconnected: unable to connect to renderer" error.
I am using 2.33.506120 Chrome Driver version and Chrome Version is "62.0.3202.94" .
Can anyone Please tell me what might be the reason and the remedy for this.

Thanks.

@ameykhopade2 are you sure that on win 10 server the latest chrome browser & driver are installed?

its working fine now. latest chrome browser was installed on the server but my TFS build was now deploying the new browser which was creating the problem changed the build def and its working with the upgrade to 2.33.
thanks:)

Hi,
I am getting the same error while executing below code :

Driver = new ChromeDriver(driverPath, chromeOptions, TimeSpan.FromSeconds(180));

Chrome version: 62.0.3202.94 (Official Build) (64-bit)
Chrome Driver version:2.33

using Proxy settings in IE. Running Visual studio as Administrator.

This is the Exception stack trace I am getting:
session not created exception from disconnected: Unable to receive message from renderer (Session info: chrome=62.0.3202.94) (Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 6.1.7600 x86_64) (InsecureCertificate)-------------trace-------------- at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, ChromeOptions options, TimeSpan commandTimeout) at Web.Sample.NuGet.Framework.TestBase.StartDriver(String browser, Int32 implicitWaitSec) in C:UsersnsakareLATESTSITCRMSITCRMBAF.TestsFrameworkTestBase.cs:line 237 at BAF.Tests.Tests.PaymentsAndClaims.SIT.UC318_Populate_PolicyDetails_Test.UC318_US_96864_001P_PopulateClaimsPaidThisYear_Active_ClaimMade_Contri() in C:UsersnsakareLATESTSITCRMSITCRMBAF.TestsTests360SITUC318_Populate_PolicyDetails_Test.cs:line 425

Hi anyone please help me fix this issue.
Thanks.

options.addArguments("no-sandbox"); - solved the problem.. :)

options.addArguments("no-sandbox") and version 2.33 solved the issue with chrome v 62.0.3202.94 and python 2.7x

I am using chromedriver 2.30.0.1 as 2.33 is giving some problem .

  1. Upgrade chromedriver
  2. Remove window size set keywords if you are using any

Yes it worked after updating chrome driver. I upgraded to 2.3.4 version. Thanks :)

It worked for me after upgrading my chrome driver to 2.3.5 version. Thanks..

It causes because page took long time to load , you need add additional line to your chromedriver option. Please refer the below link for more information :
Timed out receiving message from renderer in selenium

Hello.
I am getting the same error
*** selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: disconnected: unable to connect to renderer (Session info: chrome=70.0.3538.80) (Driver info: chromedriver=2.43.600229 (3fae4d0cda5334b4f533bede5a4787f7b832d052),platform=Mac OS X 10.13.6 x86_64)

Was this page helpful?
0 / 5 - 0 ratings