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

@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