Skip to content

Instantly share code, notes, and snippets.

@kevlened
Created September 21, 2018 18:54
Show Gist options
  • Save kevlened/779c938964a53ab77566af6cec1f3a45 to your computer and use it in GitHub Desktop.
Save kevlened/779c938964a53ab77566af6cec1f3a45 to your computer and use it in GitHub Desktop.
How to contribute to the Selenium repo

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:

  1. Mac
  2. Homebrew
  3. git
  4. pyenv

Steps:

git clone git@github.com: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment