I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf'
example from the Watir training class.
I''m running watir-1.6.2 on XP using IE6.
All goes well until I try to stick in a bring_to_front() command as
follows (these are the opening lines of the script):
require 'rubygems'
I'm trying to use Watir to automate the testing of a set of db reports
which were created using 'Report Designer', a part of MS SQL Server
Reporting Services.
The reports take input from the user thru HTML text fields, select
lists, etc., located in the top half of a browser, run a corresponding
I'm getting the following error when I try to call the 'flash' method:
NoMethodError: undefined method `flash' for #Watir::Frame:
0x47d42dc
My attempted call to 'flash' looks like this:
$browser = Watir::IE.new
...many intermediate $browser commands not included here...
@googlegroups.com [mailto:watir-
gene...@googlegroups.com] On Behalf Of Monkeybuns
Sent: Tuesday, January 27, 2009 11:04 AM
To: Watir General
Subject: [wtr-general] undefined method `flash'
I'm getting the following error when I try to call the 'flash' method:
NoMethodError: undefined method
Thanks, Mark and Michael. I'm glad to have the frame handle business
explained. Unfortunately, the text is still not being found at either
the frame level or the browser level.
If I look for text (using xx.text.include?) at the browser level,
should I expect it to be found regardless of the
Oh, yes, I'm aware of irb. I use it in combination with SciTE. In
fact, I used it to go through the six frames as you suggested below,
but they all returned 'false':
ie.frame(:name,ctl140_ctl00_ctl03_ctl01).text.include? 'FIND THIS
TEXT'
and 5 other searches by frame returned 'false'.
On
').value == 'FOO'
puts FOO Found
else
puts FOO Not Found
end
if ie.text_field(:value,'FOO').exists?
puts FOO Found
else
puts FOO Not Found
Returns the following:
FOO Found
FOO Found
FOO Found
On Jan 26, 2:12 pm, Monkeybuns shaml...@twia.org wrote:
Thanks
I'm trying to run the Unit Tests defined in the watir tutorial (http://
wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests).
I gather that this does not work anymore in 1.6.2 because the
directory structure has changed from 1.5.6.
Have others run into this? Are there any suggested