Click on 'Save as' button of Downloads popup Edge browser not working in unattended mode

I’m creating the workflow where bot will download csv file and click on ‘save as’ to save the files with proper names. This workflow is working fine in attended mode but in unattended mode its not able validate the popup and click on save as button, hence throwing the error.

Could anyone please suggest a solution to this?

1 Like

@Abhijna_Nayak
welcome to the forum

in such cases it could be the case that the popup is less fast displayed and the bot tries too fast to click.

We do have several options to sync more the bot on the application to get more reliable and solid. Give a try to use the retry scope activity and sync the bot till the save as popup window is displayed before continuing the flow

It’s much easier to set your browser to automatically download files and then just have the automation get them from the Downloads folder and move/rename them.

Thanks for your feedback @ppr

But I have checked on it by using takescreenshot.xaml, Uielement for ‘save as’ is already loaded. But still bot is not able to find the element. And throwing the error ‘UIelement not found’ for click on ‘save as’. But if I login to VM it will continue working without throwing any error.

Hi @Abhijna_Nayak,

Try changing the Input Mode from ‘Hardware Events’ to ‘Simulation’ in the click activity properties. I had the same issue and I tried all of the input modes until I found the one that works in unattended (where there is no screen) mode.

Hello @rizistt

Can you please share the workflow if it covers the same scenario as I mentioned and is working fine in unattended mode as well.

Hello @Abhijna_Nayak ,

In the click activity did you enabled simulate click in the properties panel?
If not please try to enable it and execute.

Hi @Rahul_Unnikrishnan

Yes, I have tried that as well but still not working. It is not validating selector of pop up only. Everything I try is working in attended mode but throwing errors in unattended.

Hi @Abhijna_Nayak ,

Give a try ,
Use ‘Activate Window’ activity for the page(in which file you are downloading file), before performing actions to the ‘Save As’ element.

Cheers,

Hi @Ashish_Soni

Actually to do anything it is not validating selector of that download pop up window itself. It is throwing selector not found error.

as mentioned, we would have to check if a better sync of Bot-App will help.

And

sounds a little bit that unattended process is started manually in a session and then is interupted.

Hi @Abhijna_Nayak,

In unattended mode, please try removing the ‘Image’ selector as in my case there was no screen attached so there was no visual element to match that image with.