I have done this before but seem to be having a brain freeze and google is not helping
I have selenium 2 web driver in Java with eclipse and I simply want to run a script (class, java) fro开发者_开发技巧m the command line.
Set the classpath, compile the code and then run the code. Something along the lines,
set classpath=c:\path\to\my\project\bin\.;c:\path\where\all\required\jars\*;
javac mywebdriver.java
java mywebdriver
I would suggest you to look at Ant for building your code than something like above..
精彩评论