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
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.custom: sap:Desktop flows\UI or browser automation
7
7
---
8
8
# "Failed to assume control of Microsoft Edge/Chrome/Firefox" error
9
9
10
-
This article provides a resolution for the error that may occur when you run a desktop flow that contains a "Launch browser" action in Microsoft Power Automate. If the error occurs right after a browser update and has the same symptoms, see [Browser automation actions stop working after a browser update](browser-automation-error-after-chromium-update.md).
10
+
This article provides a resolution for the error that might occur when you run a desktop flow that contains a Launch Browser action in Microsoft Power Automate. If the error occurs right after a browser update and has the same symptoms, see [Browser automation actions stop working after a browser update](browser-automation-error-after-chromium-update.md).
11
11
12
12
_Applies to:_ Power Automate
13
13
_Original KB number:_ 5001691
@@ -23,15 +23,15 @@ When you run a desktop flow that has a [Launch new Microsoft Edge](/power-automa
23
23
-> Failed to assume control of Firefox (Internal error or communication failure)
24
24
25
25
> [!IMPORTANT]
26
-
> To resolve the error,
26
+
> To resolve the error:
27
27
>
28
28
> 1. First run the **Troubleshoot UI/Web automation issues** diagnostic using the [Power Automate for desktop troubleshooter](/power-automate/desktop-flows/troubleshooter).
29
29
> 2. When the diagnostic runs, a report is generated that identifies issues. These issues can be resolved by pressing the **Fix** button that appears after the diagnostics check completes.
30
30
> 3. If the troubleshooter doesn't resolve the error, proceed to the potential causes and resolutions provided in this article.
31
31
32
32
### Scenario 2
33
33
34
-
The error message also can occur when you run a "Launch browser" action, and the browser is launched using a different system user than the one used to run Power Automate for desktop. For the recommended workaround, see [Cause 3](#cause-3-the-browser-is-launched-using-a-different-system-user-than-the-one-used-to-run-power-automate-for-desktop-version-238-or-higher) in this article.
34
+
The error also occurs when you run a Launch Browser action, and the browser is launched using a different system user than the one used to run Power Automate for desktop. For the recommended workaround, see [Cause 3](#cause-3-the-browser-is-launched-using-a-different-system-user-than-the-one-used-to-run-power-automate-for-desktop-version-238-or-higher) in this article.
35
35
36
36
## Cause 1: Web extension isn't installed properly or enabled
37
37
@@ -40,11 +40,11 @@ The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed prop
40
40
### Verifying issue for cause 1
41
41
42
42
- Execution of a desktop flow with one of the respective actions fails with the error message.
43
-
- Web Recorder initiation for the specific browser shows the below message:
43
+
- Web Recorder initiation for the specific browser shows the following message:
44
44
45
-
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/you-need-power-automate-desktop-extension.png" alt-text="Screenshot that shows a message that contains a Get Extension button to install the web extension.":::
45
+
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/you-need-power-automate-desktop-extension.png" alt-text="Screenshot that shows a message containing a Get Extension button to install the web extension.":::
46
46
47
-
- The web extension might seem to be installed and enabled in the extension repository of the specific browser but the execution to be unsuccessful.
47
+
- The web extension might seem to be installed and enabled in the extension repository of the specific browser, but it fails to execute.
48
48
49
49
### Resolution
50
50
@@ -55,9 +55,9 @@ The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed prop
55
55
2. Even if the extension seems installed and enabled, you need to remove it and reinstall it.
56
56
3. Restart the browser.
57
57
58
-
## Cause 2: Launch browser action takes longer than the default timeout
58
+
## Cause 2: Launch Browser action takes longer than the default timeout
59
59
60
-
Launch of the browser takes longer than the default timeout (30 seconds) of the action. The automation tries to assume control of the browser before opening and as a result the "Launch browser" action fails.
60
+
Launch of the browser takes longer than the default timeout (**30** seconds) of the action. The automation tries to assume control of the browser before opening and as a result the Launch Browser action fails.
61
61
62
62
### Verifying issue for cause 2
63
63
@@ -73,20 +73,20 @@ If this adjustment doesn't resolve the issue, follow the steps outlined in [Reso
73
73
74
74
Use the Launch Browser action to start the process of the corresponding browser. Then a combination of an additional Launch Browser action with mode set to **Attach to running instance** and a [Go to web page](/power-automate/desktop-flows/actions-reference/webautomation#gotowebpagebase) action afterwards can be used to resolve the issue.
75
75
76
-
1. Insert a new "Launch new browser" action as:
77
-
- Launch new Edge
78
-
- Launch new Chrome
79
-
- Launch new Firefox
80
-
- Launch new Internet Explorer
76
+
1. Insert a new Launch Browser action as:
77
+
-**Launch new Microsoft Edge**
78
+
-**Launch new Chrome**
79
+
-**Launch new Firefox**
80
+
-**Launch new Internet Explorer**
81
81
82
82
2. Set up the parameters of the action:
83
83
- Launch mode: Launch new Instance
84
84
- Initial URL: A default URL
85
-
-Rest parameters can be set as desired.
85
+
-The remaining parameters can be set as desired.
86
86
87
87
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/parameters-of-launch-new-browser-action.png" alt-text="Screenshot that shows how to set up the parameters of the Launch new browser action.":::
88
88
89
-
3. Insert an error handling policy by:
89
+
3. Insert an error handling policy:
90
90
- Select the **On error** option in the action window:
91
91
92
92
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/insert-error-handling-policy-for-action.png" alt-text="Screenshot that shows how to insert an error handling policy by using the On error option.":::
@@ -95,7 +95,7 @@ Use the Launch Browser action to start the process of the corresponding browser.
95
95
96
96
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/save-settings-on-error.png" alt-text="Screenshot that shows how to select the Continue flow run and Go to next action options and then save the settings.":::
97
97
98
-
4. Insert a new "Launch new browser" action of the same browser as step 1 and set up the parameters of the action:
98
+
4. Insert a new Launch Browser action of the same browser as step 1 and set up the parameters of the action:
99
99
- Launch mode: Attach to running instance
100
100
- Attach to browser tab: By URL
101
101
- Tab URL: The URL inserted in step 1.
@@ -113,7 +113,7 @@ Use the Launch Browser action to start the process of the corresponding browser.
113
113
4. Select **Save**.
114
114
115
115
6. Insert a **Go to web page** action and set up the parameters of the action:
116
-
- Web browser instance: The variable produced by the "Launch new browser" action.
116
+
- Web browser instance: The variable produced by the Launch Browser action.
117
117
- Navigate: To URL
118
118
- URL: The URL you would like to navigate to.
119
119
@@ -123,11 +123,11 @@ Use the Launch Browser action to start the process of the corresponding browser.
123
123
124
124
Use the Launch Browser action to start the process of the corresponding browser. Then a combination of an additional Launch Browser action with mode set to **Attach to running instance** and a **Wait** action set to a duration afterwards can be used to resolve the issue.
125
125
126
-
1. Insert a new "Launch new browser" action as:
127
-
- Launch new Edge
128
-
- Launch new Chrome
129
-
- Launch new Firefox
130
-
- Launch new Internet Explorer
126
+
1. Insert a new Launch Browser action as:
127
+
-**Launch new Microsoft Edge**
128
+
-**Launch new Chrome**
129
+
-**Launch new Firefox**
130
+
-**Launch new Internet Explorer**
131
131
132
132
2. Set up the parameters of the action:
133
133
- Launch mode: Launch new Instance
@@ -136,7 +136,7 @@ Use the Launch Browser action to start the process of the corresponding browser.
136
136
137
137
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/parameters-of-launch-new-browser-action.png" alt-text="Screenshot that shows how to set up the parameters of the Launch new browser action.":::
138
138
139
-
3. Insert an error handling policy by:
139
+
3. Insert an error handling policy:
140
140
- Select the **On error** option in the action window:
141
141
142
142
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/insert-error-handling-policy-for-action.png" alt-text="Screenshot that shows how to insert an error handling policy by using the On error option.":::
@@ -149,7 +149,7 @@ Use the Launch Browser action to start the process of the corresponding browser.
149
149
150
150
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/wait-action.png" alt-text="Screenshot that shows how to insert a Wait action with value set to 90.":::
151
151
152
-
5. Insert another "Launch new browser" action for the same browser used in step 1, and configure the parameters:
152
+
5. Insert another Launch Browser action for the same browser used in step 1, and configure the parameters:
153
153
- Launch mode: Attach to running instance
154
154
- Attach to browser tab: By URL
155
155
- Tab URL: The URL inserted in step 1.
@@ -165,8 +165,8 @@ To resolve the issue, ensure that the browser is launched using the same system
165
165
166
166
## General checks
167
167
168
-
If the above actions don't resolve the issue, ensure the following:
168
+
If the preceding actions don't resolve the issue, ensure the following:
169
169
170
170
- Make sure that the environmental variable `ComSpec` with value `C:\WINDOWS\system32\cmd.exe` exists on the machine.
171
171
- (Chrome only) Check and set the `exit_type` parameter to `normal` at _%localappdata%\Google\Chrome\User Data\Default\Preferences_.
172
-
- Clear the browser cache and cookies manually, then restart the browser.
172
+
- Clear the browser cache and cookies manually, and then restart the browser.
0 commit comments