get watij to run
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 alsoAre 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.
精彩评论