Source code to support the online course Start Using Selenium WebDriver with Java
Java
Switch branches/tags
Nothing to show
Clone or download
eviltester updated speedrun to cover cask install for chromedriver
updated speedrun to cover cask install for chromedriver
Latest commit 730296c Jul 9, 2018

README.md

startUsingSeleniumWebDriver

Source code to support getting started using Selenium WebDriver with Java

The source code has only really been uploaded in case people encounter problems following the instructions or make a very simple mistake that they cannot figure out.

Please read the comments below, and the source code comments if you are having trouble starting work with Firefox.

Steps

Run a Test on your chosen browser

If you are on a mac and have allowed Remote Execution in the Safari browser then you can use the command line:

mvn test -Dtest=MyFirstSafariTest

If you are using Chrome and have added ChromeDriver to the path then use the command line:

mvn test -Dtest=MyFirstChromeTest

If you are using Firefox and have added GeckoDriver to the path then use the command line:

mvn test -Dtest=MyFirstTest

Do not run mvn test because some of the tests are Platform and WebDriver version dependant and at least one will probably fail.

Update pom.xml

You may also wish to edit the pom.xml file and change the version of Selenium WebDriver to the current version listed on seleniumhq.org in the downloads section

Author: Alan Richardson

Running with Chrome

If you are using Chrome and have added ChromeDriver to the path then use the command line:

mvn test -Dtest=MyFirstChromeTest

Running with Firefox

If you are using Firefox and have added GeckoDriver to the path then use the command line:

mvn test -Dtest=MyFirstTest

Earlier versions of Firefox

If you wish to use earlier versions of Firefox then see the repo:

https://github.com/eviltester/startUsingLegacyFirefoxWebDriver