Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium not running firefox
#1
so i was trying out a simple code like this:
from selenium import webdriver
browser = webdriver.Firefox()
and it returned me a huge error message:
Error:
Traceback (most recent call last): File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start stdin=PIPE) File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 756, in __init__ restore_signals, start_new_session) File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1155, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\Automate the Boring Stuff with Python Course\seleniumwebdriver.py", line 2, in <module> browser = webdriver.Firefox() File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 157, in __init__ self.service.start() File "C:\Users\MSI\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
so what does this say? and what do i have to do to fix it?
Reply


Messages In This Thread
selenium not running firefox - by Sanlus - Aug-31-2018, 05:00 PM
RE: selenium not running firefox - by Larz60+ - Aug-31-2018, 05:24 PM
RE: selenium not running firefox - by snippsat - Aug-31-2018, 07:15 PM
RE: selenium not running firefox - by j.crater - Aug-31-2018, 09:05 PM
RE: selenium not running firefox - by Larz60+ - Aug-31-2018, 09:29 PM
RE: selenium not running firefox - by snippsat - Aug-31-2018, 10:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help for script access via webdriver to an open web page in Firefox Clixmaster 1 1,301 Apr-20-2023, 05:27 PM
Last Post: farshid
  Connect to existing Firefox session with Selenium euras 0 5,505 Feb-11-2021, 02:54 PM
Last Post: euras
  error when running headless selenium julio2000 2 4,622 Feb-01-2020, 12:41 PM
Last Post: julio2000
  Unable to access javaScript generated data with selenium and headless FireFox. pjn4 0 2,577 Aug-04-2019, 11:10 AM
Last Post: pjn4
  Selenium Web Driver Exe not running in other PC's Utkarsh29 2 4,522 Feb-28-2019, 05:48 PM
Last Post: snippsat
  Firefox Selenium (open new tab) oneclick 1 7,801 Dec-29-2018, 06:59 AM
Last Post: hbknjr
  selenium - chrome crashes when chrome is running. RvBVakama 4 15,370 Dec-16-2018, 06:32 PM
Last Post: metulburr
  Proxy Variable in Selenium wont work with FireFox Profile Proxy Setting. MIPython 0 8,554 Jul-13-2018, 05:43 PM
Last Post: MIPython
  How to geckodriver anonymous firefox mariolopes 5 7,259 Feb-10-2018, 10:58 PM
Last Post: mariolopes
  Selenium with headless firefox is slow mgtheboss 4 15,055 Jan-13-2018, 09:03 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020