Hi All,

I am writing a code to take the screen shot of the webpage loaded in the safari browser from the windows machine using the WebSpec api.Following is my code.I am using watij WebSpec for the cross browser communication.

WebSpec specSf = new WebSpec();
specSf.safari().open("http://www.google.com");
specSf.snapAll("Safari.png");

the code runs perfectly in case of ie and firefox but in case of safari i get the following error.


Exception in thread "main" java.lang.NoClassDefFoundError: org/watij/webspec/dsl/WebSpec

O/s:windows
WebBrowser:safari.
IDE:NetBeans