Thursday, July 26, 2012

Getting Eclipse to run Webdriver (with Java)

1. Install Eclipse (from eclipse.org)
   (To work with eclipse in Java you will need the Java Developer Kit (JDK) - http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html - uninstall previous version if there is one)
2. In Eclipse:
      -> New Java Project
      -> On this screen give your java project a name ('webdriver')
      -> Finish
3. Download webdriver (http://code.google.com/p/selenium/downloads/detail?name=selenium-java-2.25.0.zip&can=2&q= )
4. Unzip the file
5. Right click in the project in Package Explorer and choose Build Path --> Configure Build Path
6. Click on Libraries tab
7. Click 'Add Jar files' (or if you cant find your jar files 'add External Jar Files'
8. Add all your selenium webdriver jars
  javadoc location is http://selenium.googlecode.com/svn/trunk/docs/api/java/
9. From there you can start using your Webdriver files