QaMantra: Configuration of Selenium WebDriver Project With Java part 1

Configuration of Selenium WebDriver Project With Java part 1

To install Selenium means to set up a project in a development so you can write a program using Selenium. How you do this depends on your programming language and your development environment and Selenium is Language Independent Tool So You can use any one Programming Language among -  Java , C# , Python , Ruby , PHP , JavaScript , Perl .

The easiest way to set up a Selenium 2.0 Java project is to use Maven. Maven will download the java bindings (the Selenium 2.0 java client library) and all its dependencies, and will create the project for you, using a maven pom.xml (project configuration) file. Once you’ve done this, you can import the maven project into your preferred IDE, IntelliJ IDEA or Eclipse.
Maven Project
 For Maven Project you Should have Selenium Dependency in POM.xml ,Selenium Dependency you can get from Here .

<!-- -->
Copy this Dependency and Paste inside a  <Dependencies>  Paste Selenium Dependency  </Dependencies> Tag 
                  Be sure you specify the most current version. At the time of writing, the version listed above was the most current, however there were frequent releases immediately after the release of Selenium 2.0. Check the Maven download page for the current release and edit the above dependency accordingly.

Now, from a command-line, CD into the project directory and run maven as follows.

mvn clean install
     Java Project  

For those user who is using Simple Java Project they can Download Jar Selenium Latest Jar

Previous Article                                                                                                       Continue Reading ...

No comments: