I have just installed watir 1.5.1.1100. I have ruby 1.8.4 (2006-04-14) [i386-mswin32].

I have file upload field that looks like this

<input type="file">

When I try to upload file with this (there is " file.txt" is at "C:\")

ie.file_field(:index, 1).set('c:\file.txt')

command prompt window appears with title "c.\ruby\bin\ruby.exe". This appears at that window.

c:\wet
c:/ruby/lib/ruby/site_ruby/1.8
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
c:/ruby/lib/ruby/site_ruby
c:/ruby/lib/ruby/1.8
c:/ruby/lib/ruby/1.8/i386-mswin32
.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1100

Also, "Choose file" window appears.

After a few seconds, "c.\ruby\bin\ruby.exe" window closes and "Choose file" window stays open. "file.txt" does not get selected.

I just tried it with 1.5.1.1081 and it works. Is this a known bug? Is this functionality removed or moved somewhere?

Thanks for help.

--
Zeljko Filipin
[EMAIL PROTECTED]
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to