- Download the latest Geckodriver for Firefox
- then
mv
that file to/usr/local/bin/geckodriver
andsudo chmod +x /usr/local/bin/geckodriver
- make sure you have
"webdriver.firefox.profile" : "geckodriver",
in yournightwatch.json
file if you are using it
- Download the latest version from the Chrome site
- unzip it if it is a zip file
- then
mv
that file to/usr/local/bin/chromedriver
andsudo chmod +x /usr/local/bin/chromedriver
- Download the
SafariDriver.safariextz
from the release site - Double click on the file and it will open in Safari
- Accept the file as trusted
- It will now show in your extensions
git clone [email protected]:SeleniumHQ/selenium.git
cd selenium
./go clean release
cd build/dist
- You can now run the server with the following:
java -jar selenium-server-standalone-3.0.0-beta1.jar
- you may have a server of a different name depending on when you read this tutorial
- cd to the directory where you build the jar file
- run:
java -jar selenium-server-standalone-3.0.0-beta1.jar
You can also alias the function in a ~/.bashrc
or ~/.zshrc
with:
alias selenium="java -jar /path/to/build/dist/folder/selenium-server-standalone-3.0.0-beta1.jar"
Remember: You may have a server of a different name depending on when you read this tutorial