Selenium WebDriver- Web Application Testing : Selenium Setup
Selenium WebDriver- Web Application Testing
Selenium Setup |
Downloading JUnit
Click here to download
Direct Download of Selenium Framework
Download Selenium from Maven Central
After download, you will get selenium-java-2.44.0.jar.
if extract this file you will get selenium-java-2.44.0.jar file that you need to place as library in your project.
Selenium with Eclipse |
Create web Project and ADD selenium-java-2.44.0.zip file after extract by using configure build path to Your project as below.
Note: You can take web sample code that is available on previous article.
If you have downloaded above zip file and configured with eclipse then you are ready to move with Selenium Testing Framework.
Run the TestFile which is mentioned as below
And you will find that all tests got successful. since we have the code
verifyHeaderMessage("Welcome James!!!");
Now, Change code as below
verifyHeaderMessage("1Welcome James!!!");
and then run the test again where you will find that test got failed.
With Maven Tool
Add a dependency to Selenium in test scope. (Note: 2.44 is the latest stable version as of the latest edit on this page.)
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.44.0</version>
</dependency>
Downloads Example |
Recent Comments