How to setup 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 environment path etc.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
1) in windows install python from : https://www.python.org/downloads/
2) then run pip install from command line:
pip install selenium
3) download gecko/chrome/ie driver & add driver.exe path to PATH Variable. so need to setup path while running selenium driver.Firefox() / driver.Chrome() method.
As far as I understand, you want to develop in python, using selenium library and work with Firefox webdriver.
pip install selenium
OR some IDEs like PyCharm propose to install libraries, just import selenium)The testing machine should have selenium V. 3.0.2, firefox V. 51.0.1 (Latest version) and geckodriver v. 0.14. If you are using linux please do the following steps:
[Look up the latest release on github and replace the wget link with that. Downloading and installing an outdating release may result in "buggy" behaviour.]
To make sure that every thing is going well, check versions for all of them and make sure that its matching.
Here is an example to run