Based on pieces information between https://github.com/SeleniumHQ/selenium/blob/master/CONTRIBUTING.md, https://github.com/SeleniumHQ/selenium/blob/master/README.md, and https://github.com/SeleniumHQ/selenium/wiki/Python-Bindings
Prereqs for this guide:
- Mac
- Homebrew
- git
- pyenv
Steps:
git clone [email protected]:username/selenium.git
cd selenium
git remote add upstream git://github.com/seleniumhq/selenium.git
# make sure you're using Java 8
java -version
# if not, install via brew
brew tap caskroom/versions
brew cask install java8
# append "export JAVA_HOME=`/usr/libexec/java_home -v 1.8`" to your ~/.bash_profile
# make sure you have python 2 installed (I installed it via pyenv)
python --version
# symlink python2 to your system python
# if you're using pyenv, here's how to do it
ln -s /usr/bin/python2.7 /usr/local/bin/python2
# install the python libs
pip install requests urllib3 certifi tox
# make sure chromedriver is in your path
# http://chromedriver.chromium.org/downloads
mv ~/Downloads/chromedriver /usr/local/bin
./go build
./go test
# just for Python
./go py_prep_for_install_release
cd ./py
tox -e py27-chrome