python selenium not running with chrome driver & c

2019-09-02 15:25发布

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条回答
小情绪 Triste *
2楼-- · 2019-09-02 15:33

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

查看更多
登录 后发表回答