Groups
Groups
Sign in
Groups
Groups
SeleniumWiki
Conversations
About
Send feedback
Help
Uploading a file using FirefoxDriver Webdriver
12 views
Skip to first unread message
SAI ROSHAN
unread,
Jul 19, 2011, 3:08:54 AM
7/19/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SeleniumWiki
Hi all,
I am simulating the file upload in my application using FirefoxDriver,
i have this file input box:
<input id="file" type="file" size="27" value="Attach document"
onclick="javascript:return processAttachment();" name="file">
and tried this code:
driver.findElementByName("file").sendKeys("E:/plus.GIF");
driver.findElementByName("file").click();
But its not working....
Please help me out in this...
Thanks sai
Pavandeep Puddupakkam
unread,
Jul 25, 2011, 8:15:36 AM
7/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SeleniumWiki
Check this article
http://www.seleniumwiki.com/software-testing/upload-image-or-file-which-triggers-windows-popup/
You can use driver.findElementByXpath
Reply all
Reply to author
Forward
0 new messages