Here i am posting new post to create new maven project that i have learned from various sites and blot and i got this very useful and want to share this with people who are also like me, and has started learning Selenium from scratches.
1- In Eclipse File ->New-> Other-> Maven-> Maven Project
2- Now Click Next, Next and Next
3- Type in field Group Id: com.Projectgroup.selenium Example com.Dwarika.selenium
4-Type in field Artifact Id: projectname Example : Webdriver
5-Click: Finish
3- Type in field Group Id: com.Projectgroup.selenium Example com.Dwarika.selenium
4-Type in field Artifact Id: projectname Example : Webdriver
5-Click: Finish
After this you will see the hierarchical structure like this in Eclipse where you would be able to see pom.xml in which you put all dependencies for your Maven Project
In Above snap number 4 you would be able to see the dependencies for junit and Slenenium
Dependencies that we need to change as per the use
1) We will change junit version to 4.7 or recent one is 4.9
in my case i have taken version for junit is 4.7
To add dependecy for Selenium we need to put this like given below
1
2
3
4
5
6
|
org.seleniumhq.selenium
selenium-java
2.6.0
-- Here Eclipse will detect changes in pom.xml automatically and will download or update all dependencies as per the requirement
-- After the build is finished, there should be <em>selenium*.jar</em> files under <em>Maven Dependencies</e
|