[Wtr-general] Set focus to original window
Alan Jahns
ajahns at gmail.com
Fri Dec 1 21:16:00 EST 2006
Hello,
I'm new to watir and scripting in general. The tool is still easy enough
that I have automated many testcases already. On to my problem:
I have a page where selecting the sign in link opens a new window with the
sign in form, I set watir's focus on this new window with the attach command
and can fill it out fine and submit. After submission this new window closes
and the original window refreshes to reflect the successful sign in with
some text showing username etc.
My problem is after the sign in info is submitted and the new window closes
the script ends. I have some simple if/else statements to check if some text
strings are on the original window, but it seems that it no longer sees the
original window. How would I make watir switch focus back?
Thanks in advance!
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061201/d1887c23/attachment-0001.html
More information about the Wtr-general
mailing list