An excellent idea. i tried that but it did not fix it.
b.file_field(:id, "messageFile").fire_event("onchange")
Debug shows:
Watir::FileField.new(Watir::IE.attach(:hwnd, 1839554), :tag_name =>
Array.new << 'file', :unique_number => 5).click!();"
On Wednesday, 6 March 2013 16:24:17 UTC-8, Chuck van der Linden wrote:
> The other thing I would try is before trying to click submit, fire an
> onchange event at the file field, if there is perhaps some javascript that
> would react when a user manually sets the field but is not getting tripped
> when we set it programmatically.
>
> On Wednesday, March 6, 2013 2:33:13 PM UTC-8, Alex Shtayer wrote:
>>
>>
>> Hmm, strange
>>
>> Could you perform mentioned steps manually? Is everything work as it
>> should? (without any file clearing from select window)?
>>
>> Did you try to put static delay just for test purpose to see that
>> functionality works properly? (like sleep 10)
>>
>
--
--
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.