0
votes

I am trying to run a project in selenium with chrome driver, but after I didn't use it for a month ( Was an update to chrome). When I run the project its opens thechrome browser and then immediately closes.

I reciving the following error:

Traceback (most recent call last): File "C:\Users\maorb\OneDrive\Desktop\Maor\python\serethd\tvil_arthur.py", line 27, in driver = webdriver.Chrome() File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 67, in init desired_capabilities=desired_capabilities) File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 91, in init self.start_session(desired_capabilities, browser_profile) File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 173, in start_session 'desiredCapabilities': desired_capabilities, File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 233, in execute self.error_handler.check_response(response) File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: session not created exception from disconnected: Unable to receive message from renderer (Session info: chrome=63.0.3239.108) (Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 10.0.16299 x86_64)

I am using chrome web driver version 2.36 & Google chrome version 63.0.3239.10

I tried to use latest Chrome & Chrome webdriver version but Its opening the chrome but its just opening and not doing any of code.

1
Check your chrome version once again and updateDebanjanB
Is it possible to use latest version of web driver and chrome? Or are you restricted to update? Usually the version of web driver works well with its intended version of Chrome Browser. Sometimes, changes in chrome browser can cause breaking changes to web driver. Try to update both to latest version. If the issue still persists, then it's probably something elseAnup
@DebanjanB I was in the last update but its still not working so I tried to downrage but now its still not working.kaki
@DebanjanB When I am using Chrome & Chrome webdriver latest versions its opening the chrome when I run it but Its just opening and nothing else ( saying new tab of chrome)kaki

1 Answers

0
votes

Usually people get this error when your script cannot find the chromedriver maybe re look at where you specified the path to be and add a executable path