Showing results for 
Search instead for 
Did you mean: 
New Member

PAD - drop a file on a webpage


Is there any way to drop the file on webpage using PAD?


I need to drag a file from one of the folder in pc and drop it on a webpage, just like how we drop files in onedrive or gdrive. Is it possible? any inputs on this? 

Super User
Super User

There should be a ‘click on link’ UI that you can click to “browse computer” or “upload”. This should open a Windows Explorer (folder) browse window. Here, you can use send keys to send the file path and file name.  I usually do it like this:


’After clicking the UI to “browse”,

  • Wait for window element ‘capture the “FileName” text field
  • Send keys %FilePath%{Enter} 
  • Wait (1)
  • Send keys %FileName%{Enter}

Thank you for the reply. Unfortunately, it will not work in my case. I don't know why, but when I try to capture the ui element "button" which uses for clicking to upload, it is not giving an option to capture that particular button, instead it is highlighting a bigger box which contains the button. 

I’m just brainstorming. There is a mouse click option for ‘left click down’ and ‘left click up’ so you should theoretically, if you knew the coordinates or can reference the elements, click down on the File and drag to the UI element on the web page, then ‘click up’. But I have never tried it. 

another alternative to the first idea would be click on text on screen (OCR), but I typically don’t recommend OCR because it was slow and unreliable with the Tesseract engine. However, the latest update has the Windows OCR engine, and maybe you will have better luck. I haven’t been able to test it. 

best of luck!

Thank you! Yes, I tried working with mouse clicks and it works in some cases. However, I'm looking for a more robust solution, which can work on 3rd person desktop with different resolution or any other use case scnearios. 

I will once try OCR and the method you suggested and see if it works. Thank you!

Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,933)