Skip to content

Commit 2af3d0a

Browse files
committed
PR feedback
1 parent 854e957 commit 2af3d0a

1 file changed

Lines changed: 14 additions & 28 deletions

File tree

support/power-platform/power-automate/desktop-flows/browser-automation/failed-to-assume-control-of-edge-chrome-firefox-error.md

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ _Original KB number:_   5001691
1414

1515
## Symptoms
1616

17-
### Scenario 1
18-
19-
When you run a desktop flow that has a [Launch new Microsoft Edge](/power-automate/desktop-flows/actions-reference/webautomation#launch-new-microsoft-edge), [Launch new Chrome](/power-automate/desktop-flows/actions-reference/webautomation#launchchromebase), or [Launch new Firefox](/power-automate/desktop-flows/actions-reference/webautomation#launchfirefoxbase) action in Microsoft Power Automate, the attempt fails. Additionally and the program returns one of the following error messages:
17+
When you run a desktop flow that has a [Launch new Microsoft Edge](/power-automate/desktop-flows/actions-reference/webautomation#launch-new-microsoft-edge), [Launch new Chrome](/power-automate/desktop-flows/actions-reference/webautomation#launchchromebase), or [Launch new Firefox](/power-automate/desktop-flows/actions-reference/webautomation#launchfirefoxbase) action in Microsoft Power Automate, the attempt fails. Additionally the program returns one of the following error messages:
2018

2119
- > Failed to assume control of Microsoft Edge (Internal error or communication failure).
2220
- > Failed to assume control of Chrome (Internal error or communication failure).
@@ -25,10 +23,6 @@ When you run a desktop flow that has a [Launch new Microsoft Edge](/power-automa
2523
> [!IMPORTANT]
2624
> To resolve the error, run the **Troubleshoot UI/Web automation issues** diagnostic by using the [Power Automate for desktop troubleshooter](/power-automate/desktop-flows/troubleshooter). When the diagnostic runs, it generates a report that identifies issues. Resolve these issues by pressing the **Fix** button that appears after the diagnostics check finishes. If the troubleshooter doesn't resolve the error, refer to the potential causes and solutions that are provided in this article.
2725
28-
### Scenario 2
29-
30-
The error occurs when you run a Launch Browser action, and the browser is started by using a different system user than the one that was used to run Power Automate for desktop. For the recommended workaround, see [Cause 3](#cause-3-you-start-the-browser-by-using-a-different-system-user-than-the-one-you-use-to-run-power-automate-for-desktop-version-238-or-higher) in this article.
31-
3226
## Cause 1: Web extension isn't installed correctly or enabled
3327

3428
The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed correctly or enabled.
@@ -56,15 +50,11 @@ The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed corr
5650

5751
## Cause 2: Launch Browser action takes longer than the default timeout
5852

59-
Starting the browser takes longer than the Launch Browser action's default timeout (30 seconds). The automation process tries to assume control of the browser before it starts it. This attempt causes the Launch Browser action fails.
60-
61-
### Additional symptoms
62-
63-
Running a desktop flow by using one of the respective actions might fail and return one of the error messages that's listed in "Scenario 1." This behavior is inconsistent.
53+
Starting the browser takes longer than the Launch Browser action's default timeout. The automation process tries to assume control of the browser before it starts, causing the Launch Browser action to fail. This behavior might be inconsistent, where some executions fail while others are successful.
6454

6555
### Solution 1: Increase timeouts
6656

67-
In the **Launch new Edge**, **Launch new Chrome**, or **Launch new Firefox** action, increase the values of the **Timeout on webpage load** and **Timeout** parameters that are located in the **Advanced** section. For example, set these values to **120** seconds.
57+
In the [Launch new Edge](/power-automate/desktop-flows/actions-reference/webautomation#launch-new-microsoft-edge), [Launch new Chrome](/power-automate/desktop-flows/actions-reference/webautomation#launchchromebase), or [Launch new Firefox](/power-automate/desktop-flows/actions-reference/webautomation#launchfirefoxbase) action, increase the values of the **Timeout on webpage load** and **Timeout** parameters that are located in the **Advanced** section. For example, set these values to **120** seconds.
6858

6959
If this adjustment doesn't resolve the issue, try the steps in [Solution 2](#solution-2-use-a-go-to-web-page-action) or [Solution 3](#solution-3-use-a-wait-action).
7060

@@ -73,10 +63,10 @@ If this adjustment doesn't resolve the issue, try the steps in [Solution 2](#sol
7363
Use the **Launch Browser** action to start the process of the corresponding browser. Then, use a combination of an additional **Launch Browser** action that has the mode set to **Attach to running instance** and a [Go to web page](/power-automate/desktop-flows/actions-reference/webautomation#gotowebpagebase) action:
7464

7565
1. Insert a new **Launch Browser** action as:
76-
- **Launch new Microsoft Edge**
77-
- **Launch new Chrome**
78-
- **Launch new Firefox**
79-
- **Launch new Internet Explorer**
66+
- [Launch new Microsoft Edge](/power-automate/desktop-flows/actions-reference/webautomation#launch-new-microsoft-edge)
67+
- [Launch new Chrome](/power-automate/desktop-flows/actions-reference/webautomation#launchchromebase)
68+
- [Launch new Firefox](/power-automate/desktop-flows/actions-reference/webautomation#launchfirefoxbase)
69+
- [Launch new Internet Explorer](/power-automate/desktop-flows/actions-reference/webautomation#launchinternetexplorerbase)
8070

8171
1. Set up the parameters of the action:
8272
- Launch mode: **Launch new Instance**
@@ -123,10 +113,10 @@ Use the **Launch Browser** action to start the process of the corresponding brow
123113
Use the **Launch Browser** action to start the process of the corresponding browser. Then, use a combination of an additional **Launch Browser** action that has the mode set to **Attach to running instance** and a **Wait** action that's set to a duration of 90 seconds.
124114

125115
1. Insert a new **Launch Browser** action as:
126-
- **Launch new Microsoft Edge**
127-
- **Launch new Chrome**
128-
- **Launch new Firefox**
129-
- **Launch new Internet Explorer**
116+
- [Launch new Microsoft Edge](/power-automate/desktop-flows/actions-reference/webautomation#launch-new-microsoft-edge)
117+
- [Launch new Chrome](/power-automate/desktop-flows/actions-reference/webautomation#launchchromebase)
118+
- [Launch new Firefox](/power-automate/desktop-flows/actions-reference/webautomation#launchfirefoxbase)
119+
- [Launch new Internet Explorer](/power-automate/desktop-flows/actions-reference/webautomation#launchinternetexplorerbase)
130120

131121
1. Set up the parameters of the action:
132122
- Launch mode: **Launch new Instance**
@@ -164,18 +154,14 @@ To resolve the issue, make sure you start the browser by using the same system u
164154

165155
## Cause 4: Browser doesn't start because of profile conflicts
166156

167-
The browser doesn't start, or it starts one time but doesn't start in subsequent attempts.
168-
169-
### Additional symptoms
170-
171-
Running a desktop flow by using a **Launch Browser** action fails, and the browser either doesn't appear or terminates immediately after launch.
172-
173-
### Solution
157+
The browser doesn't start, or it starts one time but doesn't start in subsequent attempts. Running a desktop flow by using a **Launch Browser** action fails, and the browser either doesn't appear or terminates immediately after launch.
174158

175159
Another session might be using the same browser profile. When you start a Chromium-based browser (such as Microsoft Edge or Google Chrome), the browser checks whether another instance is already using the same profile on disk. If another instance is using the same profile, the browser terminates immediately.
176160

177161
This issue can occur if the same user signs in to multiple sessions on the same machine, and each session tries to open the browser. Only one session can successfully start the browser. The other attempts terminate on startup.
178162

163+
### Solution
164+
179165
To work around this issue, manually launch the browser from Power Automate for desktop by using a different profile on disk. Use the following example:
180166

181167
```powershell

0 commit comments

Comments
 (0)