0

Error message

I set up a virtual environment and installed selenium, py.test and webdriverdownloader furthermore I set up a system environment variable and added path to geckodriver

But when I executed Python test in command line it fails with error:

geckodriver executable needs to be in path

What went wrong from my side?

2

1 Answer 1

1

This has nothing to do with your virtualenv, it's that Selenium requires an external driver to work. Geckodriver is for using with Firefox and you can download it from Mozilla's GitHub. Once you have downloaded it, just make sure that it is on your PATH. See this post if you don't know how to do that.

Sign up to request clarification or add additional context in comments.

2 Comments

I downloaded Geckodriver and set it up in path. But this error is still there.
Did you restart your shell? Also, you can check if it worked by running echo %path% for command prompt or echo $Env:Path for PowerShell.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.