hi all,

i have a problem in my project.i have to handle a popup window.In my project
after clicking on 'Download ' button.it Opens a popup window named as:-"
http://cfo-bat.ceb.com/Members/Popup/Download.aspx?cid=9563293-MicrosoftInternet
Explorer" and then it automatically opens a File DIalog
window.which contains 'save' and 'cancel' button...

i tried this:without successs
def start_jsalert_clicker
       Thread.new{ system("ruby \"c:\\wev2\\jscriptExtraAlert.rb\"") }
     end

code is:-
$ie.div(:id,"graphics").click()
   start_jsalert_clicker
    $ie.image(:src,"http://cfo-bat.ceb.com/Images/btn_browse_download.gif
").click
    $ie.wait_for_browser

it generates these errors:-

NoMethodError: undefined method `wait_for_browser' for
#<Watir::IE:0x2e150a8>
   lo.rb:36:in `download'
   lo.rb:17:in `start'
   lo.rb:30:in `test_start_app'

i have two problems

first is...first window named :-'
http://cfo-bat.ceb.com/Members/Popup/Download.aspx?cid=9563293-MicrosoftInternet
Explorer' does not automatically open that File Dialog window when
i do this through script.but when i do this manually it opens that file
dialog window..

and second is:-how to click on 'save' and 'cancel' button..and how to
specify path

please help as soon as possible.
it very urgent

Thanks In advance

regards
Shalini Gupta
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to