Highlighted
Frequent Contributor.
Frequent Contributor.
1053 views

LeanFt automation, how to upload a file to a drop box?

i have a drop box like this,  https://uploadfiles.io/  and i need to upload a file to this.

please help its realy important.

Labels (2)
0 Likes
8 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Hello,

Perhaps you can try to use insight objects to automate this , you can review the following article https://admhelp.microfocus.com/leanft/en/14.50/HelpCenter/Content/HowTo/Insight.htm

Let me know if you were able to use it

Regards

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Drag and drop a file to the box might be difficult, so I would just click on the box and enter the file name (including its full path) into the "File name" Windows.EditField.

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

it worked, but its only working with one file and i need to upload 5 files at the same time... do you have an idea how to do that?

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

i did it with the other guy's advice. do you know a way to mark a bunch of files at the same time? maybe a function that replace the ctrl + right click ,or ctrl + a,  or any way to upload a bunch of files at the same time

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi,

If you wish to simulate 'CTRL+A', you can use the Keyboard class to achieve this.

https://admhelp.microfocus.com/leanft/en/14.51/HelpCenter/Content/HowTo/mouse&keyboard.htm

 

Please make sure that the expected window is focused.

 

Regards,

Anton

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Write the file names with their path like this into the "File name" WebEdit then it should take all of the given files:

"C:\test1.txt" "C:\test2.txt"

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

hmm i tried to do it but it doesnt let me to write something that isn't one file name. for example i cant write "dsgsdfgs" or as you said "C:\test2.txt". can only type one file name that exists.

do you have any idea why? and is there a way to overcome it?

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Sorry, then I don't know more... Then I would consider uploading one file after one...

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.