After updating to Firefox 47 and installing Marionette (instructions here: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver) my code is throwing the following error:
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys
#firefox requires a new webdriver code-named marionette
#Selenium must be told to use said driver (not necessary in the future)
caps= DesiredCapabilities.FIREFOX
caps["marionette"]=True
#STABLE RELESE NOT SUPPORTED USE DEV EDITION
caps['binary']="C:\Program Files (x86)\Firefox Developer Edition\"
driver=webdriver.Firefox(capabilities=caps)
Throws:
Traceback (most recent call last):
driver=webdriver.Firefox(capabilities=caps)
response = self.execute(Command.NEW_SESSION, capabilities)
self.error_handler.check_response(response)
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: permission
denied
I have added Marionette to my PATH
, renamed as wires, and tried pointing selenium directly to the .exe
file with no avail
You can just simply downgrade your Firefox to version 45 as Firefox 47 is not compatible yet.
Or
You may refer to this link. Selenium 2.53 not working on Firefox 47
You can find a solution to your problem in the above link.
I hope it helps you.