1

I have a python code that I run on my Windows computer roughly once a month,

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select  

driver = webdriver.Chrome() 
driver.get('url')

last time I ran it everything was fine, but today I got this

WebDriverException: Message: u'unknown error: Runtime.executionContextCreated has invalid 
\'context\': {"auxData":{"frameId":"184.1","isDefault":true},
"id":1,"name":"","origin":"://"}\n  (Session info: chrome=54.0.2840.71)\n  
(Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)'

I have tried reinstalling selenium but that didn't change anything. I haven't included the full code since it breaks right at the beginning. Any input would be helpful

4
  • No worries, couldn't edit it. What version of selenium are you using? Commented Nov 3, 2016 at 22:27
  • Have a look at these: stackoverflow.com/questions/38918486/… and bugs.chromium.org/p/chromedriver/issues/detail?id=1451 Commented Nov 3, 2016 at 22:29
  • I have updated to the latest version available for anaconda after I got that error, but that doesn't seem to be the problem, since google didn't come out with new chromedriver. The new chrome window pops up but than it crashes giving me this error Commented Nov 3, 2016 at 22:30
  • The error is usually thrown when the driver version +browser version aren't in sync. If none of the solutions in the links above work, please add the following details to your question: 1. Selenium version, 2. Chromedriver version and 3. Chrome version. Commented Nov 3, 2016 at 22:34

1 Answer 1

2

This error is usually thrown when the driver version and browser version aren't in sync - you either need to upgrade chromedriver or downgrade Chrome.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.