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

Thank you Lakshay..
Thanks a lottt…  Very helpful… 🙂

I don’t have 100 points to add a comment ,that’s why I’ve used Answer Section..

With Regards
A.Ravinder Reddy

Train Answered on November 5, 2014.

No Worries, I have changed the settings now. You would be able to do it now.

Lakshay Sharma

on November 5, 2014.

Thanks a lot …. 🙂 🙂 🙂

on November 5, 2014.

I don’t know how to set profile picture in registration.can you please help me this

on March 7, 2017.
Add Comment

Your Answer

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