Upload from desktop/ drive

Answered

Can you please tell me how to upload a file from desktop to my application? I tried to get xpath for the “upload” icon. But I am not able to. I am getting some ‘Adobe Flash Player’ settings options if i right  click. I have attached the screenshot of the issue that i am facing. Please help.

Upload from desktop/ drive

Train Asked on November 20, 2014 in Selenium WebDriver.

Hi Swathi

you can try manually with some key strokes   if that works..??

on November 20, 2014.

Hi Ankit,

Thanks for your response.
Do you mean to use key strokes with third party tools of Slenium such as Autoit??
Or is there any other tool/ solution for doing?

on November 20, 2014.

hi
yes i mean use robot class if possible by keystrokes

on November 20, 2014.

Friend plese explian in detail… i didnt get wt u mean by Keystrokes n all…

on November 22, 2014.
Add Comment
  • 5 Answer(s)
    Best answer

    Great… Thank you so much people for your help!!!

    Train Answered on November 21, 2014.

    XD

    on November 21, 2014.

    Hi ankit,          Is there any other possible ways to upload the file with out using the robot class.

    on November 21, 2014.

    Yes bro You can  Use AutoIt

    on November 22, 2014.
    Add Comment

    Hi Friend,

    Can you please be specific what is you r exact problem since your question defines in two direction

    1. You want to upload a file form your Desktop
    2. you are unable to locate the upload button

    if it is Q1–> then

    Train Answered on November 20, 2014.
    Add Comment

    Thanks for your response.
    Mine is question 1.. I am unable to locate the xpath of the upload button. When i try to right click to inspect element, it gives me options such as ‘Global settings, About Adobe Flash Player’ etc…
    How to inspect element for this kind of button?

    Train Answered on November 20, 2014.
    Add Comment

    Hi friend,

    Please do not use Right-click, use “f12” to get the “firebug” or the “dev. tool” open and try to locate the element with xpath or any locator.

    Train Answered on November 20, 2014.
    Add Comment

    Hi Swathi

    There are various plugins and extensions available in chrome and firefox that will help you in getting the xpath if you are unable to get that by right click.
    I use Xpath helper in Chrome and that gives me the xpath of the element by just moving my mouse over the element(there is no need to even click on the element sometimes)

    RE: Upload from desktop/ drive

    And the results will be shown like this

    RE: Upload from desktop/ drive

    Hope this will help you

    Train Answered on November 20, 2014.
    Add Comment
  • Your Answer

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