|
I have had good success with this,
although other claim they have not. First I create this method: def startClicker(
button , waitTime = 3) w =
WinClicker.new longName
= $ie.dir.gsub("/" , "\\" ) shortName
= w.getShortFileName(longName) c =
"start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{
waitTime} " puts
"Starting #{c}" w.winsystem(c) w=nil end Then I put this line right before the
button that causes the _javascript_ popup like this: startClicker("OK"
, 3)
$ie.button("Submit").click: That is all there is and it works pretty
much every time. Hope this helps, --Mark From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hrishikesh Jamadagni Hi Well I am stuck with
one issue I click a submit
button which brings up a _javascript_ popup with the title
"Microsoft Internet Explorer" and with the text "Zip
code should be 5 digit?". The popup has one button:
Ok. This is what i have at
the top of my script require 'win32ole' Watir script just
hangs there without throwing any errors. Regards hrishi |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
