Currently, I am facing this issue too. But I have been running the same 
version of Watir (3.0.0) since the past 1 year but never encountered this. 
But now I can see this on all the installations of IE-9. Is there any 
workaround for the same?

On Wednesday, 24 October 2012 20:08:16 UTC+5:30, Kevin Scott wrote:
>
> Wish I better news but this issue is also being tracked via 
> http://stackoverflow.com/questions/12933283/watir-file-field-clears-in-ie9-after-setting-the-filepath
>  
>
> On Monday, October 15, 2012 12:22:49 PM UTC-4, Kevin Scott wrote:
>>
>> 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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to