Another shot in the dark, might be to try sending a tab or enter to the
file entry field
b.file_field(:id, "messageFile").set(@messagePath)
b.file_field(:id, "messageFile").send_keys :tab
or
b.file_field(:id, "messageFile").send_keys :enter
On Friday, March 8, 2013 3:29:51 PM UTC-8, Alex Shtayer wrote:
>
>
>> b.button(:value, "Submit").click
>>
>>
> Some not so smart ideas :):
> b.button(:value, "Submit").fire_event("onclick")
> or
> b.button(:value, "Submit").fire_event("onmousedown")
>
> or between these two actions
> b.file_field(:id, "messageFile").set(@messagePath)
> b.button(:value, "Submit").click
> try to do some another action (click somewhere or something) to set focus
> out from file field
>
--
--
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.