When I try to set the path in a file field using browser.file_field(:name, "upload").set(file_path)
, the file field is cleared on IE9 after setting the file path.
The same code used to work fine, and I was able to upload the document in IE8.
When I try to set the path in a file field using browser.file_field(:name, "upload").set(file_path)
, the file field is cleared on IE9 after setting the file path.
The same code used to work fine, and I was able to upload the document in IE8.
I faced the same problem and came across to this question. I found one easy solution. You can set the compatibility view for the web site you are testing. You can add your web site in Tools --> Compatibility view Settings in IE9. It will work without any problem.