Once a grid has been located, we usually want to see or do something to at least one of the rows in the grid. This is pretty straightforward in Dojo grids as it is in more or less standard html tables. The header row and the data rows in the Dojo grid are in separate…
Read moreWhen working with Watir and Watir-Webdriver there is a standard DOM property for an element such as name, class, id, index, scr, href etc, which is usually a straight forward way to locate an element on the page you need to get a handle of, such as select lists. But in certain cases, we come across…
Read moreWhen working with Watir and Watir-Webdriver there is a standard DOM property for an element such as name, class, id, index, scr, href etc, which is usually a straight forward way to locate an element on the page you need to get a handle of, such as select lists. But in certain cases, we come across…
Read moreThe Watir problem with waiting for Ajax elements… When testing a webpage that contain elements like Javascript or ajax which, after an event fire, reload page elements without reloading the whole page can become difficult to script for using plain Watir or Selenium. For example, Watir’s wait_until method will wait for an element to…
Read moreWhen working with Selenium, sometimes you will find yourself stuck trying to access a particular element of the page and unable to script any further (this can often be a problem when working with a page that has iframes or links that trigger JavaScript events). A fix for this is to call Sikuli from within…
Read moreIn one of our clients current projects, there is a module of scripts that require each script to log in as multiple user/roles to complete certain parts of the work flow. The application is also a little quirky. It has no log out button! So in order for our script to log out of one…
Read morePopulation 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 moreI 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 moreAutoIT is a powerful tool to use in conjunction with Ruby/Watir because it allows you to manipulate windows and simulate actions without requiring the use of the source code. This is especially useful for pop-ups such as modal dialogs or file downloads.
Read more