pythonselenium-webdriverfirefoxautomationselenium-firefoxdriver

How to set up a Selenium Python environment for Firefox?


How can I set up a Selenium Python environment for Firefox?

I am using Firefox 50, Selenium 3, Python 3.5. I tried with many things binary and copying the geckodriver in the environment variable PATH, etc.


Solution

  • As far as I understand, you want to develop in Python, using the Selenium library and work with the Firefox webdriver.

    1. Install Python (Python 3 already contains pip)
    2. Install Selenium (pip install selenium or some IDEs like PyCharm propose to install libraries, just import Selenium)
    3. Download Mozilla webdriver
    4. Enjoy!