Watir use AutoIt For file uploading. set method for file_field looks
like

    def set(setPath)
      assert_exists
      require 'watir/windowhelper'
      WindowHelper.check_autoit_installed
      begin
        thrd = Thread.new do
          system("rubyw -e \"require 'win32ole'; @autoit=WIN32OLE.new
('AutoItX3.Control'); waitresu...@autoit.winwait 'Choose file', '',
15; sleep 1; if waitresult == 1\" -e \"@autoit.ControlSetText 'Choose
file', '', 'Edit1', '#{setPath}'; @autoit.ControlSend 'Choose file',
'', 'Button2', '{ENTER}';\" -e \"end\"")
        end
      thrd.join(1)
      rescue
        raise Watir::Exception::WatirException, "Problem accessing
Choose file dialog"
      end
      click
    end

You can try to invoke this autoit code after clicking the span or
rewrite this method for Span class
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to