|
Mark, Does this work with Modal dialogs as well? I’ve not been able to get Winclicker to work as well
as the unittest example. I start it before my dialog pops up but nothing ever
happens. Frustrated, Kim From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cain, Mark I have a function (right out of the unittests) #Popup clicker 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 call it... startClicker ("OK", 3) #Then I click the button that produces the popup. ie.frame("rightframe").frame("search").button(:name,
"Submit").click Hope this helps, --Mark -----Original Message----- Hi All, My script for click on OK button on popup warning message dialog box, but it doesn't work ie.frame("rightframe").frame("search").button(:name,
"Submit").click w = WinClicker.new w.clickWindowsButton("Microsoft Internet
Explorer","OK") w.clickJavaScriptDialog("OK") Thank for help _______________________________________________ Wtr-general mailing list http://rubyforge.org/mailman/listinfo/wtr-general ****************************************************************** This email and any files transmitted with it from the ElPaso Corporation are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. ****************************************************************** |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
