Tag: <span>Watir</span>

testimonials_bg

Use of XPath in WATIR

03/04/2011
Posted by
0

WATIR allows you to access elements based on pre-defined attributes. But there are some cases where a simple watir method cannot be used. Cases such as below: Case 1 – > There is an element that cannot be accessed using pre-defined attributes Case 2 -> There is no API for a particular HTML element Case…

Read more

Using WATIR and Roo to read data from Spreadsheets

03/02/2011
Posted by
0

Roo is a gem that lets you access contents of , 1> Excel Spreadsheets(.xls), 2> Open office spread sheets(.ods), 3>Excel’s new format .xlsx and 4>Google spreadsheets. Consider the following spreadsheet:   The above spreadsheet can be accessed using the following code:

#Require the roo library in the script

# To parse an excel…

Read more

AutoIT and Basic Authentication on Locked Machines

02/25/2011
Posted by
0

When doing automated testing, it’s common to run into a basic authentication window before you can access the application. WATIR can’t handle these authentication windows very well because it’s basically a modal popup with no associated DOM. That’s where AutoIT can be used to handle these authentication windows. You can use AutoIT to send basic…

Read more

Retrieving Text from a Modal Dialog

01/11/2011
Posted by
0

If your test case requires you to validate the text of a modal dialog, you can use the AutoIT function WinGetText.

However, this method only works for IE modal popups. When using Firefox, the WinGetText function will output a nil. One possible solution around this is to highlight the text, copy it, send it…

Read more

Modal Dialogs and AutoIT

01/10/2011
Posted by
0

Modal dialogs are pop-ups that need attention before the user can go back to their testing window. Modal dialogs are difficult to automate using only Ruby and Watir because you can’t access the html source code of a modal dialog. Since AutoIT does not require any source code to operate, it is a viable tool…

Read more

Activating & Inputting Text into an Ajax Text Box using Watir

Posted by
0

Dealing with AJAX text boxes using Watir is tricky. We recently encountered 1 which looks like a generic input box but needs to be activated in order to input data. After trying the various common input methods

we finally were able to identify the fix as a 2 step process: Step 1: Clicking the…

Read more