|
Hi I’m
having some problems with the use of wait(), so the first solution I took was
to replace them in the places where i had problems, with some sleep()
statement. The
problem is that the application I’m running my scripts on, takes
different execution times every time I run the scripts. The solution was to place
some while() routines in order to know if the application has finished it’s
work. Until this point no much problem….the real problem is that the
application starts some other browsers that will auto close themselves, and
that I’m unable to figure out when they’re closed. I’ll
show you a bit of the script: (I’m using a mix of Watir/Wet on this) @b.Frame("name:=xxxxx").Link("title:=x").click() b1
= Browser("title:=yyyy") b1.Image("title:=yy").click() sleep 3 b2 = Browser("title:=zzzzz") b2.frame("z").text_field(:name,
"zzz").set zzz b2.Frame("name:=z1").Image("alt:=z").click() sleep
2 b2.Frame("name:=z2").Link("text:="
+ zzzzzzz).click() sleep
5 b1.Image("title:=yyy").click() The
browser b2 closes itself…..how can I know when It closes? Regards Miguel |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
