Download Option not working

Click ‘Save as’: Could not find the user-interface (UI) element for this action. Possible solutions: • Ensure application is opened and the UI element is visible on the screen at execution time • Edit the Target of the UI activity and use Validation to debug the issue. • If needed, re-indicate the element as its properties might have changed • Use “Check state” activity to check the application state before executing the action • Increase the “Delay before” value to allow time to the application to render entirely and become responsive ..

Keyboard Shortcuts ‘Export’: Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘’ from the process ‘explorer.exe.’

Getting this error as i am exporting the file and then download pop up should come and then select bot has to select save as but it is showing the error in unattended mode

You need to enable setting of browser if popup is not availble.

@Snehamayi_Senapati if you are using chrome just go in setting and turn off where it ask to download file for location so it will use fixed folder path which u are given

Hi @Snehamayi_Senapati

I think you are trying to click on the Save as button in the Save as window. If I am right, Use a new Use application/browser activity and indicate the save as window, inside of this Use application/browser activity insert the click activity or any activity to perform the actions on the Save as window.

Then it will work.

Hope it helps!!

1 Like

i am using Edge do i need to change keyboard activities properties to App/browser or hardware events?

Yes in edge you need to go setting/ download and turn off where it ask the where to download

you can use Send Hotkey → Input Method = Hardware Events for keyboard activities

Hi @Snehamayi_Senapati

If you are using Edge to download the files. Open a tab with the Downloads URL “edge://downloads/” then indicate with new Use application\browser activity. Then this activity will launch the download page of Edge browser. Inside of this Use application\browser activity inser the click activity to click on the Save as button.

Hope it helps!!

ok a fixed filepath i need to set then,
but the name i want to save as today date and time ..as every time it will save with same name right?

@Snehamayi_Senapati

If you’re on Modern UiAutomation (recommended):

  1. Wrap your web app in Use Application/Browser.
  2. Inside it:
  • Use your Click “Export” (or whatever triggers the download).
  • Right after that, drop a Wait for Download activity.
  1. Configure Wait for Download:
  • Indicate the same browser window (if needed).
  • Set Timeout (ms), e.g. 60000 (60 seconds).
  • Create an output variable like downloadedFilePath (String) → this will hold the full path of the downloaded file.

After that, you can directly use:

downloadedFilePath

in Read Range, Move File, etc.

Click ‘Save as’: Click with “Chromium API” is not supported for this element. Please use other input method. what changes i need to do here in properties


Yes you can take assign activity and pass the value there with your date time formate

“Your path ” & Now.ToString(“yyyyMMdd_HHmmss”) & “.pdf”

@Snehamayi_Senapati
Nice, the screenshot helps a lot :+1:

So this is Microsoft Edge’s download flyout:

“What do you want to do with StockReport (1).xlsx?”
Open | Save as | Save

For unattended robots, the clean way is:

  • Don’t use “Save as” (that opens the Explorer Save As window = foreground problems)
  • Just click “Save”, let Edge download to the default Downloads folder
  • Then wait for the file in the folder (or use UiPath’s Wait for Download activity)
2 Likes

ok let me try with this option..Thankyou for your response

1 Like

@Snehamayi_Senapati

for downloading you can follow these steps as well which will help

In edge disable ask for where to download in settings

In Studio

  1. Use wait for download
  2. Inside activity use click save button or whatever export button which saves the file
  3. You can rename the file as you need after download..Wait for download will give the downloaded file and location as variable

cheers

1 Like

In the properties of click activity you have an option called Input mode. In that dropdown select the Hardware Events or change based on the working of the document.

Check the below image for better understanding,

Hope it helps!!