This worked great for me, thank you vikashkumar051.

The only difference is that i hardcoded the path to my clickJSDialog since i 
was getting errors when building the path dinamically.

def jsAlert(button, waitTime = 3)
  w = WinClicker.new
  c = "start ruby 
C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\watir-1.5.1.1145\\watir\\clickJSDialog.rb 
#{button} #{waitTime}"
  puts "Starting #{c}"
  w.winsystem(c)
  w=nil
end 

THank you for this great function!!!!
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5857&messageID=18797#18797
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to