Manual and Automated Testing
›
WebDriver (aka Selenium 2.0)
Search
everywhere
only in this topic
Advanced Search
upload files with webdriver and java (control + open)
Classic
List
Threaded
♦
♦
Locked
3 messages
Illusion0Reality
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
upload files with webdriver and java (control + open)
Without using AutoIT, is there way to upload files using driver (java).
I tried step-wise, but failed in the initial step.
Webelement e= Driver.findelement(By.id("AttachFiles"))
e.send_keys (Keys.Control, "o")
My aim is to send a combination of keys in the 1st step.
Later I will upload a file.
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: upload files with webdriver and java (control + open)
Administrator
You should be able to upload file using -
Driver.findelement(By.id("AttachFiles")).sendKeys("file path")
// Click on upload button
~ seleniumtests.com
illusion0reality
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: upload files with webdriver and java (control + open)
Thanks, I will try.
Free forum by Nabble
Edit this page