This project is using the latest Selenium Bindings.
Run these commands depending on your base OS.
- Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Caskroom
brew tap caskroom/cask
- If you dont have the Java Development Kit (JDK) run this command
brew cask install java
- Install Maven
brew install maven
- Run
./mac_install_browsers.sh
The following commands are instructions on how to run the tests
mvn test -Dsurefire.suiteXmlFiles=mac-only.xml
on a mac
There is a shared run configuration that has the maven target setup and another with a sample built in NUnit test runner option.
Safari requires the following steps to enable Selenium Webdriver tests to run:
- Open Safari Preferences
- Go to the Advanced Tab
- Check the box at the bottom "Show Develop menu in menu bar"
- Click on the Develop menu
- Click on "Allow Remote Execution"
Now Safari tests will work.
If running tests only locally you can remove delete //
from the @Test
line of the Safari class.