#SeleniumWebDriverFramework
A maven Selenium framework that is built which allows Spring to manage dependency via dependency injection.
- Open a terminal window/command prompt
- Clone this project.
- CD into project directory
- mvn clean verify
_All dependencies will be downloaded and specific driver executable dependencies are already installed in project directory
##What I Should do to run my test
_To run any unit tests that test your Selenium framework you just need to ensure that all unit test class contains Spring test annotation
- You don't need to do this:
- To create a WebDriver instance :
- A webDriver object will be wired automatically
Note: You can name your test class whatever you want.
##Further Information
- -Dbrowser=firefox
- -Dbrowser=chrome
- -Dbrowser=ie
-You don't need to download the IEDriverServer, or chromedriver binaries, they are already added to the project directory
-You can specify a grid to connect to where you can choose your browser, browser version and platform
- -Dremote=true
- -DseleniumGridURL=http://{username}:{accessKey}@ondemand.saucelabs.com:80/wd/hub
- -Dplatform=xp
- -Dbrowser=firefox
- -DbrowserVersion=42
-You can also specify a proxy to use
- -DproxyEnabled=true
- -DproxyHost=localhost
- -DproxyPort=8080
If the tests fail screenshots will be saved in ${project.basedir}/target/screenshots