Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98817

WebDriverException: Service ...\firefox.exe unexpectedly exited error using GeckDriver Firefox through Selenium

$
0
0

selenium uses "fake" browsers that Google sign-in rejects ("This browser app is not secure"), mechanize lacks a GUI, webbrowser can't click. Is there any package that can open the "usual" browser that won't be rejected by third-party services?


For reference, here's what happens if I try to supply the "usual" Firefox executable path to selenium:

from selenium import webdriver
exepath = r"C:\Program Files\Firefox Developer Edition\firefox.exe"
driver = webdriver.Firefox(executable_path=exepath)

The browser does open, but selenium fails to connect:

File "D:\Anaconda\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 164, in __init__
self.service.start()
File "D:\Anaconda\lib\site-packages\selenium\webdriver\common\service.py", line 98, in start
self.assert_process_still_running()
File "D:\Anaconda\lib\site-packages\selenium\webdriver\common\service.py", line 111, in assert_process_still_running
% (self.path, return_code)

WebDriverException: Service C:\Program Files\Firefox Developer Edition\firefox.exe unexpectedly exited. 
Status code was: 0

I searched for this exact error - all solutions point back to using the "WebDriver" (i.e. "fake browser"). Tried also with Chrome - same deal, except it first waits 30 secs before throwing the error.


Note: geckodriver and ChromeDriver are both WebDrivers - the "fake" browsers.

Note 2: this is the message I'm getting: (and link to Learn more)

This is how WebDriver's URL appears:

enter image description here


Viewing all articles
Browse latest Browse all 98817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>