I write the following code:

require 'watir'
require 'watir/WindowHelper'

test_url = "test.html"
ie = Watir::IE.new
ie.goto(test_url)

Thread.new{WindowHelper.new.push_confirm_button_ok}
Thread.new(WindowHelper.new.push_alert_button)

ie.close

and the html as following:

<html>
 <head>
 <title>WindowHelper Test </title>
 <script type="text/_javascript_">     
   if(confirm("OK?"))
    alert("Ok");
 </script>
 </head>
 <body>
 </body>
</html>

But it dosen't work.I don't know why?I wanna help.

Thanks!

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to