Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to run webdriver code in eclipse with ant ?

 
Mac Dcosta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed eclipse and ANT for my java webdriver code to build and run. My code builds successfully, but not able to run, it throws a bunch of error. Here is the error


I'm not able to understand what is the error ? Is it problem with the classpath or my code ? My code runs fine with Run button directly. But gives this error with build.xml

Here is my build file

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a problem with you classpath. You need to determine which JAR file contains org.openqa.selenium.WebDriver and ensure that it is in your classpath. Try replacing lines 12 to 16 with this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic