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?
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”,
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!
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
If you are a small business ISV/Reseller, share your thoughts with our research team.