Avoid the popup sceen ''How do you want to open this file''

Hi,

When I have downloaded a file from the application, then I get the “How do you want to open this file” screen popup.

How can I deactivate this pop message or How can I identify this in the flow and click Esc?

Further flow fails if I dont avoid this.

image

Cheers.

Hi @krishbcd

May I know if you are getting this pop-up even after the check box is enabled? If yes, first find the step when it is coming, use the click activity, and select the app that you want to use.

If you couldn’t find out Use parallel activity and write the code on one side to handle this pop-up message.

Hi @krishbcd

Without UiPath Studio

  1. Right-click on any .csv file in the File Explorer.
  2. Select ‘Open with’ and then ‘Choose another app’.
  3. In the list of applications, select the one you wish to use to always open .csv files, such as Microsoft Excel or another spreadsheet program.
  4. Before you click ‘OK’, make sure to check the box that says “Always use this app to open .csv files”.
  5. Click ‘OK’ to set the default application.

With UiPath Studio

You can use check App State Activity
In the Target Appears Section
Use click activity and Keyboard shortcuts

Hope this helps

its a VM. No MS office installed.

While downloading the file from application inside the flow using .csv file.

Also, I can not use the below steps as not highlighting the “How do you want to this file” popup.
How ever I can use the Findelement activity whose ouptut is of type uielement.
How can I use this uipelemnt type in If condition and use Esc option?

You can use check App State Activity
In the Target Appears Section
Use click activity and Keyboard shortcuts.

Firstly, I dont want to open the file. I am just saving it to a specific folder with .csv Extension.

Also, there is no MS office installed in the VM.

Better go with Parallel activity and use Hotkey activity inside that for Esc key and enable Continue on Error Property.

Cheers