开发者

get watij to run

开发者 https://www.devze.com 2023-02-23 08:52 出处:网络
i downloaded watij and am trying to get it to run in eclipse. i tried this sample code WebSpec spec = new WebSpec().safari();

i downloaded watij and am trying to get it to run in eclipse. i tried this sample code

WebSpec spec = new WebSpec().safari(); spec.safari().open("http://www.google.com");

and WebSpec is underlined in red saying WebSpec cannot be resolved into a type I assume this means that something has not been added into my project.

I right clicked on my src folder and added the .jar files and then added webspec.jar to the project also

Are there any steps that I a开发者_JAVA百科m missing?


You don't put JAR files in your src folder. They are not source files.

Create a lib folder, put the JAR files there, and then add them to the project's build path.

0

精彩评论

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