WebDriverException thrown in Python for Selenium driver for Chrome -


i ran following commands in python instantiate selenium webdriver chrome, got exception. (a few days ago) there no error:

from selenium import webdriver driver = webdriver.chrome.webdriver.webdriver() traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "c:\python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 65, in __init__     keep_alive=true)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 74, in __init__     self.start_session(desired_capabilities, browser_profile)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 123, in start_session     'desiredcapabilities': desired_capabilities,   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 175, in execute     self.error_handler.check_response(response)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 166, in check_response     raise exception_class(message, screen, stacktrace) selenium.common.exceptions.webdriverexception: message: session not created exception unknown error: runtime.executioncontextcreated has invalid 'context': {"aux data":{"frameid":"9716.1","isdefault":true},"id":1,"name":"","origin":"://"}   (session info: chrome=54.0.2840.71)   (driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc 1b),platform=windows nt 6.1.7601 sp1 x86_64) 

there errors of form:

  file "c:\python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 67, in __init__     desired_capabilities=desired_capabilities)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 87, in __init__     self.start_session(desired_capabilities, browser_profile)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 141, in start_session     'desiredcapabilities': desired_capabilities,   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 199, in execute     response = self.command_executor.execute(driver_command, params)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 395, in execute     return self._request(command_info[0], url, body=data)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 426, in _request     resp = self._conn.getresponse()   file "c:\python27\lib\httplib.py", line 1132, in getresponse     response.begin()   file "c:\python27\lib\httplib.py", line 453, in begin     version, status, reason = self._read_status()   file "c:\python27\lib\httplib.py", line 409, in _read_status     line = self.fp.readline(_maxline + 1)   file "c:\python27\lib\socket.py", line 480, in readline     data = self._sock.recv(self._rbufsize) socket.error: [errno 10054] existing connection forcibly closed remote host 

i resolved issue upgrading chromedriver.exe 2.25: http://chromedriver.storage.googleapis.com/index.html?path=2.25/

(most version of chrome had been updated automatically, required chromedriver updated well.)


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -