RE: How to upload an Image using selenium webdriver?


Hi All,
I am facing the issue while uploading an image into website using selenium. I tried with the simplest solution  which we identify the locator of the upload button and pass the Path of the file.But it is not working for me as the attribute type=button not type=file..
Is there any workaround for this.. Please let me know if anyone has the solution other than using AutoIT.

HTML snippet is :
<input id=”dzuploadbttn class=”pink-button type=”button name=”dzuploadbttn value=”Upload style=”display: block;>

here is the site       —–>click on Sell To US  —>

I did not find the click on Sell To US, please let us know the page as well on which we will get this button.

on November 5, 2014.
Add Comment
4 Answers

Train Answered on November 5, 2014.

Please use comment section to give extra information.

on November 5, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.