Message: 'geckodriver' executable needs to be in PATH.

248 views
Skip to first unread message

Edward Alexander

unread,
May 1, 2017, 5:02:19 PM5/1/17
to Selenium Users
I have set a path for a geckodriver(‪C:\selenium_drivers\geckodriver.exe) .However if i type the below  code in cmd for a python webdriver, i get an error as in subject above

>> from selenium import webdriver
>>> driver = webdriver.Firefox()


When i manually click the  the geckodriver in the file explorer, the following is displayed:
   1493671023196   geckodriver     INFO    Listening on 127.0.0.1:4444

How should i set the path differently,to run the code without an error

Andreas Tolfsen

unread,
May 3, 2017, 11:35:17 AM5/3/17
to seleniu...@googlegroups.com
Also sprach Edward Alexander <edward.m....@gmail.com>:

> I have set a path for a
> geckodriver(‪C:\selenium_drivers\geckodriver.exe) .However if i
> type the below  code in cmd for a python webdriver, i get an error
> as in subject above
>
> >> from selenium import webdriver
> >>> driver = webdriver.Firefox()

Did you see the last couple of paragraphs under using geckodriver
with Selenium in the README?

https://github.com/mozilla/geckodriver#selenium

Akshat Gupta

unread,
May 23, 2017, 2:25:31 AM5/23/17
to Selenium Users
Hi,
Try this,

System.setProperty("webdriver.gecko.driver","D:\\geckodriver-v0.16.1-win32\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();


Thanks.

Let me know if you face any problem.

viv...@iiitd.ac.in

unread,
Oct 11, 2018, 3:35:44 AM10/11/18
to Selenium Users
Hi Akshat,

I am trying to launch firefox using selenium. I have also added gecodriver in the proper path using windows GUI but still I am getting the same error :

'geckodriver' executable needs to be in PATH.

Kindly suggest.

Akshat Gupta

unread,
Oct 11, 2018, 4:23:41 AM10/11/18
to seleniu...@googlegroups.com
Hi,
Please share your code.

Akshat Gupta
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/uptm51w3GB0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/10f75f17-a607-4e94-9c3d-e3e4428e4c6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

VIVEK RUHELA

unread,
Oct 11, 2018, 4:49:31 AM10/11/18
to seleniu...@googlegroups.com
Hi,

import getpass
from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
url = "https://www.linkedin.com/uas/login"
driver = webdriver.Firefox()
driver.get(url)

Thanks.

You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Thanks and Regards,
Vivek Ruhela
Reply all
Reply to author
Forward
0 new messages