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
yes manually works fine.
yes i tried various static delays it does not alleviate the problem
On Wednesday, 6 March 2013 14:33:13 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
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
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
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
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