Yes, you should be able to pass the location as a string to any file upload 
element:

Watir version of the Sauce Example 
<https://saucelabs.com/resources/selenium-file-upload>: 

browser.goto 
'http://sl-test.herokuapp.com/guinea_pig/file_upload'browser.file_field(:id, 
'myfile').set 
"/Users/sso/SauceLabs/sauce/hostess/maitred/maitred/public/images/darkbulb.jpg"

 

On Monday, October 27, 2014 6:35:18 AM UTC-5, Anisha wrote:
>
> Hi,
>
> I want to know if I can test the upload attachment feature using watir 
> webdriver. Is it possible to upload an attachment on click of a button 
> using watir webdriver.
>
> --  
> Anisha Narang
>  

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to