Issues with 'Click Image' Activity on Edge for 'Save As' Button

We are experiencing issues using the “Click Image” activity to select the “Save As” button in Edge when renaming and saving a downloaded file. Is there any workaround or alternative method to make this process more reliable?

Thanks in advance

Change the download path with the desired one in the download settings. There will be no need to open save as and steps after that.

Thanks for your answer, the problem is that I need to change the file name after download, not just the path.

1 Like

@Jose_Corbalan ,

You can try below:

When using the “Click Image” activity in UiPath to interact with elements like the “Save As” button in Microsoft Edge, there can be issues due to variations in image recognition, screen resolution, DPI settings, or UI changes in the browser.

Here are several alternative methods and workarounds to improve the reliability of your workflow when saving downloaded files in Edge:

1. Use Keyboard Shortcuts

Instead of relying on the “Click Image” activity, consider using keyboard shortcuts for saving files. For “Save As” dialog, you can use the following approach:

  • Use the Send Hotkey activity with Ctrl + S
  • If the “Save As” dialog appears, you might also want to send Enter after setting the file name.

2. Selectors for UI Automation

If the “Save As” dialog can be accessed with selectors (more common with standard Windows dialogs), try using Click with selectors instead of image recognition:

  1. Use Ui Explorer to identify the UI elements in the “Save As” dialog.
  2. Replace the “Click Image” activity with a Click activity using the selected UI element.

3. Use File Operations

Instead of handling the “Save As” dialogue directly, consider whether you can bypass the dialogue altogether by moving files after they are downloaded:

  • Use the Move File or Copy File activities to relocate the downloaded file to the desired location.
  • Use environmental variables or settings to define the download folder.

4. Browser Extensions

Consider using a browser extension for file management that integrates with UiPath. Some extensions may provide enhanced API-style access to features within Edge.

5. Alternative UI Automation Libraries

If you’re frequently facing issues with UiPath’s default image recognition, you may also look into alternative libraries or methods for image recognition (like OCR) that might work more reliably, but this often requires more configuration.

6. Adjust Screen Resolution and UI Settings

Ensure consistent testing environment settings:

  • Standardize DPI settings across systems.
  • Check if screen resolution is consistent across test environments.

7. Window Handling

Ensure that the “Save As” dialog is the active window before attempting to interact with it. You can use the Activate Window activity to ensure the dialog box is in focus.

8. Delay Between Actions

Sometimes adding a small delay between actions can help with reliability. Use the Delay activity judiciously to allow for loading times.

Example Flow

Here’s a small outline using keyboard shortcuts within UiPath:

  1. Trigger the download, and wait until the file is downloaded completely.
  2. Use Send Hotkey with Alt + F to open the “File” menu (if applicable).
  3. Use Send Hotkey with S to choose “Save As”.
  4. Set your file name using Type Into, then Send Hotkey with Enter to save.
1 Like

@Jose_Corbalan
why not to use a normal click?
this is what my selector looks like for chrome

<wnd ctrlid='1' title='&amp;Save' aaname='Save' cls='Button' />

I use a separate use application for the save window.

you can also use wait for download activity and later rename the file

1 Like

Using hotkeys it worked.

Thanks for your help

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.