Automating Internet Explorer with Ruby: Watir
|
|
|
|
| Articles Reviews Ruby | |
| Written by David Mullet | |
| Thursday, 21 June 2007 | |
|
{mos_sb_discuss:50} A reader has asked about automating Internet Explorer (IE) with Ruby. While you can do this using the win32ole library, I strongly recommend using the watir library instead. WATIR (pronounced "water") stands for "Web Application Testing in Ruby". Watir is "a free, open-source functional testing tool for automating browser-based tests of web applications." Though it's
designed for driving IE to test web applications, Watir is also very
handy for automating IE in non-test scenarios. It leverages the
win32ole library under the hood, but provides objects and methods that
simplify the process.
Average user rating from: 1 user(s)
Add new review 0 of 0 people found the following review helpful
Generic method for select list, Tuesday, 12 January 2010 Written by rashmi require 'watir' # the watir controller require 'rubygems' ie = Watir::IE.start("http:// ") ie.maximize() oselectionbox=ie.select_list(:name,"EmailComObj") itemtobeselected = "ABMailer" def selectionbox_set(oselectionbox,itemtobeselected) sselectionbox= oselectionbox.to_s #select the required item from the list if oselectionbox.includes?() sslectionbox.select itemtobeselected end end call selectionbox_set(oselectionbox,itemtobeselected But it is showing an error when I execute it. Pl help somebody to update the script.
Report this review
Powered by jReviews |
|
| Last Updated ( Monday, 25 June 2007 ) | |
| < Prev | Next > |
|---|









