Questions tagged [webspec]

WebSpec is Watij’s new cross browser and cross platform api for testing web applications. It works with IE, Mozilla, and Safari on their respective platforms for Windows, Linux, and Mac. You can write your scripts using Java or Ruby (via JRuby).

Installation

WebSpec can be used with your favorite Java or JRuby IDE like IntelliJ IDEA, Eclipse, Netbeans, Redcar, etc…all you need to do is add the jars located in the lib folder to your classpath. Next you can either copy over the WebSpec src and compile it with your project, or you can just add webspec.jar located in the java/src/dist folder to your classpath. If you are using JRuby you also have to require ‘web_spec’ in your ruby file.

Note: If you are running on a Mac you must add -d32 to your Java VM parameters.

For download: https://sourceforge.net/projects/watij/files/WebSpec/

1 questions
0
votes
1 answer

how to run webspec and watij

I have the following code... public class first { public static void main (String[] args) { WebSpec spec = new WebSpec().safari(); spec.safari().open("http://www.google.com"); //opens google.com in Safari } } written in…
Aaron
  • 53
  • 1
  • 7