I’m working within Microsoft Edge (unfortunately, the required browser) and attempting to download a file from a site. However, it doesn’t allow me to select/click on the Save or Open button in the below image because they are not a part of the webpage. Can you please help me out or provide a workaround for this?
Thank you Pratik, Saman, and Anand! I will try this on my partner’s laptop tomorrow morning and keep you updated (and mark as solution). Click Image activity did not work for me.
Try using “click activity”. Click on some Edge screen object. After that, “edit selector” - > paste the code below the image. Maybe you’ll need to change some selector name.
That’s it @dan.rpa .
unfortunately, this selector didn’t work every time for me. I had to change using “Recording” → “Desktop” → “click” → now I click on Edge save as button → “Save and Exit” → Now I change the selector title to “*” on Attach window.
It’s a little bit different, but I had no more troubles.
create dummy drive and create a folder in that drive than in edge downlaods setting change the default location path to folder which you created in new dummy drive than disconnect the drive, Now try to downlaod the file it will prompt for save location.
I was not able to use the click activity for “Save as” in edge browser either. Tried this alternate approach that worked. Go to download settings in edge and note the download location. ensure that “Ask me what to do with each download” is disabled.
In UiPath, add a “Wait for download” activity. Add your export/file download step in “Activity to initiate download” and set the monitored folder to the download folder of edge. Set downloaded file to a fileInfo variable. You can set a timeout. After this activity add a copy file activity with “From” as the above fileInfo variable and “To” as intended destination with file name.
In effect, you are letting edge auto save the file, and in UiPath, you are monitoring creation of a new file and copying it to the desired location as and when that happens.