The selenium-webdriver version is 2.37.0. I have updated it to 2.39.0 and
it works fine now.
Thank you for the alternative suggestion, I'll keep that in mind.
On Tuesday, January 14, 2014 4:05:07 PM UTC+2, Dan wrote:
>
> What's your selenium-webdriver version? Also, that's not really the way
> you want to upload files. What you really want to do is something like:
>
> $driver.file_field(:id => "paymentFileFileUpload").set("myfile.txt")
>
> Using this you won't have to deal with the file upload windows.
>
> On Monday, January 13, 2014 5:11:56 PM UTC-5, Super Kevy wrote:
>>
>> maybe element.parent.click
>>
>> On Friday, December 13, 2013 10:09:44 AM UTC-6, Lucian Stan wrote:
>>>
>>>
>>> Hi,
>>>
>>> I have the following html sample:
>>>
>>> ...
>>> <span class="fileinput-file" data-bind="if:
>>> $root.uploadTasks().length==0">
>>>
>>> <input type="text" disabled="disabled" value="No file
>>> selected."></input>
>>>
>>> </span>
>>> <span class="fileinput-file" data-bind="foreach:
>>> $root.uploadTasks"></span>
>>> <span id="paymentFileBrowseButton" class="btn fileinput-button" style="">
>>>
>>> <span>
>>>
>>> Browse
>>>
>>> </span>
>>> <input id="paymentFileFileUpload" type="file" name="files[]"></input>
>>>
>>> </span>
>>> ...
>>>
>>> I'm trying to click on the Browse span:
>>>
>>> $driver = Watir::Browser.new :firefox
>>> ...
>>> element = $driver.span(:text => "Browse")
>>> element.flash
>>> element.click
>>>
>>> In Firefox 26.0 nothing happens after the span is clicked, there are no
>>> errors either. It should open a File upload window.
>>>
>>> This works fine in Chrome Version 31.0.1650.63 m.
>>>
>>> I am using watir-webdriver (0.6.4) and ruby 2.0.0p247 (2013-06-27)
>>> [x64-mingw32].
>>>
>>> Anyone else stuck into this? Any solution?
>>>
>>> Thank you,
>>> Lucian
>>>
>>
--
--
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.