开发者

Selenium 2 web driver from the command line

开发者 https://www.devze.com 2023-03-29 13:54 出处:网络
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开发者_开发

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

精彩评论

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