Selenium Attributeerror: 'str' Object Has No Attribute 'native_events_enabled'
I input selenium firefox like this in my code, I am running python 2.7 on windows and using bash with conda driver = webdriver.Firefox('./firefoxdriver') This is what my terminal
Solution 1:
You passed a str
as a FirefoxProfile
, which is the problem:
driver = webdriver.Firefox('./firefoxdriver')
You want:
profile = webdriver.FirefoxProfile('./firefoxdriver')
driver = webdriver.Firefox(profile)
If you did not intend to use a custom profile, then you can use defaults:
driver = webdriver.Firefox()
Post a Comment for "Selenium Attributeerror: 'str' Object Has No Attribute 'native_events_enabled'"