Questions tagged [watij]

Watij (Web Application Testing in Java) is a Java API created to allow for the automation of web applications.

Watij (pronounced wattage) stands for Web Application Testing in Java and is a Java API created to allow for the automation of web applications.

Inspired by the simplicity of Watir and enhanced by the power of Java, Watij automates functional testing of web applications through real web browsers, such as Internet Explorer, Mozilla Firefox and Safari.

Full details can be found at the Watij web site.

19 questions
11
votes
2 answers

Functional PDF Testing (Automate Testing of PDF Content)

I am working on an application where I am writing some automation framework for testing a web application. I am using Watij / Watin for the framework, but have run into a problem with verifying the PDFs generated have the correct content. I know I…
John Sonmez
  • 7,128
  • 5
  • 37
  • 56
3
votes
1 answer

How to specify to the Java VM the -d32 parameter

I recently downloaded watij. on their website they say Note: If you are running on a Mac you must add -d32 to your Java VM parameters. I was wondering what the steps are to do this since they do not specify.
Aaron
  • 53
  • 1
  • 7
1
vote
1 answer

Implementing Google's hashbang/Ajax crawl with Jruby/Rails?

Working from here: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=174992 An html snapshot of the page is advised for indexing. How can I do this with watij? With htmlunit?
Peter Ehrlich
  • 6,969
  • 4
  • 49
  • 65
1
vote
1 answer

Watir/Watij integrating into Robot Framework?

I'm evaluating different tools for WebApp testing. Is anyone knowing if Watir or Watij can be integrated into the Robot Framework or as a workaround Watir/Watij can be started from command line which can be implemented into Robot? Thanks!
Storm
  • 728
  • 2
  • 7
  • 17
1
vote
3 answers

Testing jQuery change event using Watij

I have a select list where a change event has been bound to the element using jQuery. Something like this: $("#someId").change(function() {..}); When someone chooses a new option in the select list, another part of the UI will change accordingly. …
digiarnie
  • 22,305
  • 31
  • 78
  • 126
1
vote
3 answers

Watij Replacement

Does anyone know of a good replacement to Watij which will allow automated tests to be written in Java? It looks like the Watij library isn't being developed anymore.
John Sonmez
  • 7,128
  • 5
  • 37
  • 56
0
votes
7 answers

XPath can't find a table by id

I'm doing some screen scraping using WATIJ, but it can't read HTML tables (throws NullPointerExceptions or UnknownObjectExceptions). To overcome this I read the HTML and run it through JTidy to get well-formed XML. I want to parse it with XPath,…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
0
votes
1 answer

How to measure the position of an element in web page using selenium RC?

I have tried a lot in finding out how measure the coordinate of an element in a web page in different browser.But I could not find any solution. Is there any other tool that can measure the position of an element in various browsers???
0
votes
1 answer

watij safari onclick method

I am trying to simulate the click event of an anchor tag using watij on mac. I found the tag My code is Tag link = spec.jquery("a[name=myLink]").click(); But it does not seem to work. Please help. Thanks…
agrawalankur
  • 309
  • 2
  • 3
  • 15
0
votes
1 answer

Watij Click an Image

I am trying to click an image during automated testing using Watij. I am specifically trying to use SymbolFactory's src (instead of name, id, etc.) as detection. HTML:
Chandrew
  • 16,987
  • 4
  • 24
  • 40
0
votes
1 answer

How to set value for this input element through watij

My code: I don't know what…
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
0
votes
1 answer

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…
Aaron
  • 53
  • 1
  • 7
0
votes
0 answers

Not able to open a URL using WATIJ

I just started with WATIJ. I am not able to open a URL in Mozilla. Using this code: WebSpec spec = new WebSpec().mozilla(); I get the exception: Exception in thread "Main Thread" java.lang.ExceptionInInitializerError
0
votes
1 answer

Hot to use watij to click element (Java)

I need watij to click the location of sizeDropdown code Please help me go about doing this in java. The HTML code:
user2338241
  • 7
  • 1
  • 2
1
2