Closed ouroboros998 closed 1 year ago
That is really weird... I just downloaded Python 3.9 on my Windows system and it seems to work fine. I also tried modifying the options.add_argument()
line top put my Firefox binary and it also works fine (interestingly it's not headless despite the -headless
option).
Can you try just commenting out the options.add_argument()
line and instead change the following line to:
self.driver = webdriver.Firefox(executable_path=config.WEB_DRIVER_PATH, options=options, firefox_binary="/path/to/firefox")
Message: binary is not a Firefox executable I don't know what to do now xD
OS?
Windows 10
In that case, make sure that you're inputting the path using double backslashes. For example: "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
.
In that case, make sure that you're inputting the path using double backslashes. For example:
"C:\\Program Files\\Mozilla Firefox\\firefox.exe"
.
Same goes with the geckodriver executable in config.py
, unless it's in the main project folder.
Interesting. I seemed to have forgotten to catch a
NoSuchElementException
thrown by Selenium on that line, which I have now addressed in 28341fb.Are you sure you put the right login information to
config.py
? If you did, try commenting out the headless option on line 41 ofbrowsers.py
and seeing if the browser successfully logs in. If it does, then that is really weird.Can you tell me what Python version you're running?