Tag: <span>Watir</span>

When is a linked select list really ready? Watir::Wait

07/11/2011
Posted by
0

Population of select lists are often linked to the values of other entries on a page. Here is an example where the first field (text field) entry is used to do a search which populates the second field (select list) on hitting ‘Enter’. Selection of an option from that list populates the third field (also…

Read more

How to edit word documents using Ruby…

06/24/2011
Posted by
0

This blog outlines how to do scripting for test cases that involve editing of word documents or verification of the contents of a word document. The script would need to have:

To open an MS word document:

The Range(x,y) specifies the place at which text will be inserted. “.Text” allows to insert text…

Read more

Parametrize Your Automation Scripts!

06/17/2011
Posted by
0

Our Customers typically have 4-7 “lower” environments where the underlying application is deployed and tested, multiple times by multiple teams before making it into “production”. One of the big benefits of using Awetest is the ability to create and test new environments on the fly using existing scripts. When an automation script is written, it…

Read more

Attaching an IE window that isn’t ready

06/09/2011
Posted by
0

There are times, we hope rare, when we need to attach an Internet Explorer window where not all of the ready states are complete. Here is an example where the window contains several frames and one of the frames never gets beyond ready state ‘loading’. Watir‘s normal #attach method waits for the overall document to…

Read more

Attaching an IE window that isn't ready

Posted by
0

There are times, we hope rare, when we need to attach an Internet Explorer window where not all of the ready states are complete. Here is an example where the window contains several frames and one of the frames never gets beyond ready state ‘loading’. Watir‘s normal #attach method waits for the overall document to…

Read more

Handling Ajax drop down within a table…

I have been working on Ruby and Watir technologies for a while now. While enjoying the versatility of Watir (as evident from Željko Filipin’s Watir solution for playing pacman, http://zeljkofilipin.com/2010/05/29/play-google-pacman-with-watir/) – I realized that there are certain scenarios in which we do not have direct method for accomplishing a task. For example, when we have…

Read more