When using the below code in an IE8 environment with Ruby 1.8.6 & Watir
1.6.5 installed - everything works as designed.
b.file_field(:id,
'fileName').set('C:\projects\testcases\booksmart\watir\test_data\2010-01-30-XML3.zip')
b.button(:name, 'upload').click()
When using the same code in an IE9 environment with compatibility mode
OFF with Ruby 1.9.3 & Watir 3x (I have tried 3.0.0/3.01/3.0.2), there is an
issue. Basically, here is what I am seeing:
Upon execution of *b.file_field(:id,
'fileName').set('C:\projects\testcases\booksmart\watir\test_data\2010-01-30-XML3.zip')
*line of code, the file_field is populated correctly. On click of the
button -* b.button(:name, 'upload').click()* - the value of file path is no
longer visible in the file_field. The file is not uploaded.
The above code is fine when compatibility mode is ON.
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]