You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/browser-automation/failed-to-assume-control-of-edge-chrome-firefox-error.md
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:
20
18
21
19
-> Failed to assume control of Microsoft Edge (Internal error or communication failure).
22
20
-> 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
25
23
> [!IMPORTANT]
26
24
> 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.
27
25
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
-
32
26
## Cause 1: Web extension isn't installed correctly or enabled
33
27
34
28
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
56
50
57
51
## Cause 2: Launch Browser action takes longer than the default timeout
58
52
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.
64
54
65
55
### Solution 1: Increase timeouts
66
56
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.
68
58
69
59
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).
70
60
@@ -73,10 +63,10 @@ If this adjustment doesn't resolve the issue, try the steps in [Solution 2](#sol
73
63
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:
74
64
75
65
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)
80
70
81
71
1. Set up the parameters of the action:
82
72
- Launch mode: **Launch new Instance**
@@ -123,10 +113,10 @@ Use the **Launch Browser** action to start the process of the corresponding brow
123
113
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.
124
114
125
115
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)
130
120
131
121
1. Set up the parameters of the action:
132
122
- 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
164
154
165
155
## Cause 4: Browser doesn't start because of profile conflicts
166
156
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.
174
158
175
159
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.
176
160
177
161
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.
178
162
163
+
### Solution
164
+
179
165
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:
0 commit comments