AK9309 AK9309 - 1 year ago 178
Python Question

Python selenium unknown error

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()

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

Sai Sai
Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download