Hi Everyone,

We have one method in watir.rb called Image.save .I want to know is there
something of the same kind for buttons.
Actually i wanted to use the same for file download ,Now the present code is
something like

   def fill_save_image_dialog(path)
     Thread.new do
       system("ruby -e \"require 'win32ole'; @autoit=WIN32OLE.new('
AutoItX3.Control'); [EMAIL PROTECTED] 'Save Picture', '', 15; if
waitresult == 1\" -e \"@ autoit.ControlSetText 'Save Picture', '', '1148',
'#{path}'; @autoit.ControlSend 'Save Picture', '', '1', '{ENTER}';\" -e
\"end\"")
     end
   end
   private :fill_save_image_dialog
 end

In the above code if we change ' Save Picture'  with 'File DownLoad ' and
put the same in Button class , the same should work for File download. Am I
right with this ?

Thanks and Regards
Ajitesh Srinetra
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to