Edge browser gets closed during execution

Hi everyone,

I am facing a problem in remote servers, I have created a bot for unattended automation mainly focused on UI automation on Edge Browser but many times I have noticed that the Edge browser gets automatically closed during execution resulting in bot failure with the exception: No open windows found for ‘msedge.exe’. Please check if the application is running.
Please give me some insights as to what could be the issue here as it is impacting the bot

Thanks and regards
Vineet

Hi

This could be an antivirus program, a firewall, or another application that is running on the remote server.

Disable antivirus software and firewalls. If you are using antivirus software or firewalls, try disabling them temporarily to see if that resolves the issue.

Also make sure that the server has enough CPU, memory, and disk space to run Edge and your automation.

Cheers @Vineet_Joshi

Thanks Palaniyappan, Will check these steps

1 Like

Hello @Vineet_Joshi

  1. Implement a browser restart mechanism in your workflow using “Element Exists” and “Open Browser” activities.
  2. Use robust error handling with Try-Catch blocks and retry mechanisms.
  3. Continuously monitor the browser’s state and reopen it if closed.
  4. Implement detailed logging for debugging.
  5. Optimize your automation workflow to reduce resource consumption.
  6. Check Edge browser settings to prevent automatic closure or updates.
  7. Consider using UiPath Orchestrator for monitoring and troubleshooting.

Thanks & Cheers!!!

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