python - Failed to start browser "Entity not found". Webdriver Firefox -
selenium ver 3.0.1 firefox ver 47 64bit - windows 10, geckodriver ver 11.
from selenium import webdriver selenium.webdriver.firefox.firefox_binary import firefoxbinary binary=firefoxbinary('c:\program files\mozilla firefox\firefox.exe') wb=webdriver.firefox(firefox_binary=binary) wb.get("www.python.org")
error messages: wb=webdriver.firefox(firefox_binary=binary) file "c:\python34\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 145, in init keep_alive=true) file "c:\python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 92, in init self.start_session(desired_capabilities, browser_profile) file "c:\python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 179, in start_session response = self.execute(command.new_session, capabilities) file "c:\python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute self.error_handler.check_response(response) file "c:\python34\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.webdriverexception: message: failed start browser: entity not found
update firefox >=48 run selenium3
https://ftp.mozilla.org/pub/firefox/releases/49.0.2/win64/en-gb/firefox%20setup%2049.0.2.exe
Comments
Post a Comment