I want to run firefox web-editor with selenium so that I can save login with requests in a search robot. I got this idea from this solution, because the login with requests does not work for several reasons. I always get an error that the browser could not be started because permission was denied. Here is my code:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary=FirefoxBinary("/path/to/firefox")
fp=webdriver.FirefoxProfile("path/to/extra/profile")
url="www.python.org"
driver = webdriver.Firefox(fp, firefox_binary=binary, executable_path="path/to/geckodriver.exe")
driver.get(url)
The error is as follows:
selenium.common.exceptions.WebDriverException: Message: Failed to start browser:
permission denied
Can anybody help? I searched for years on the Internet but can't find anything ... Thanks !!!
Tessa source
share