开发者

Selenium 2 web driver from the command line

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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜