Adapted from https://github.com/authomatic/chromedriver_installer
Installs GeckoDriver executable with pip or setup.py.
Clone the repository:
(e)$ git clone https://github.com/tausten/geckodriver_installer.git
Install the most recent GeckoDriver version
(e)$ python setup.py install
Install specific GeckoDriver version
(e)$ python setup.py install --geckodriver-version=0.21.0
After install, there should be the geckodriver
executable available in your path:
(e)$ which geckodriver
/home/andypipkin/e/bin/geckodriver
(e)$ geckodriver --version
geckodriver 0.21.0
(e)$ geckodriver
1532996000606 geckodriver INFO geckodriver 0.21.0
1532996000617 geckodriver INFO Listening on 127.0.0.1:4444
The same as before except you need to pass the install options wrapped in pip's --install-option=""
option.
(e)$ pip install geckodriver_installer --install-option="--geckodriver-version=0.21.0"
I can't seem to find a way to make easy_install pass user options to setup.py so you only can install the most recent GeckoDriver version with easy_install.
The build_scripts command of the setup.py script invoked by python setup.py install
downloads, the GeckoDriver zip archive version specified in the --geckodriver-version
option from https://github.com/mozilla/geckodriver/releases to the temp directory of the operating system. The archive will be unzipped to the build directory and installed as an executable to the bin directory.
If the --geckodriver-version
option is ommited, it installs the most recent geckodriver version.
You need tox to run the tests.
(e)$ git clone https://github.com/tausten/geckodriver_installer.git
(e)$ tox