Skip to content

Commit 2a37cd6

Browse files
authored
Updates from editor
1 parent 0b1e132 commit 2a37cd6

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.custom: sap:Desktop flows\UI or browser automation
77
---
88
# "Failed to assume control of Microsoft Edge/Chrome/Firefox" error
99

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).
1111

1212
_Applies to:_   Power Automate
1313
_Original KB number:_   5001691
@@ -23,15 +23,15 @@ When you run a desktop flow that has a [Launch new Microsoft Edge](/power-automa
2323
- > Failed to assume control of Firefox (Internal error or communication failure)
2424
2525
> [!IMPORTANT]
26-
> To resolve the error,
26+
> To resolve the error:
2727
>
2828
> 1. First run the **Troubleshoot UI/Web automation issues** diagnostic using the [Power Automate for desktop troubleshooter](/power-automate/desktop-flows/troubleshooter).
2929
> 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.
3030
> 3. If the troubleshooter doesn't resolve the error, proceed to the potential causes and resolutions provided in this article.
3131
3232
### Scenario 2
3333

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.
3535

3636
## Cause 1: Web extension isn't installed properly or enabled
3737

@@ -40,11 +40,11 @@ The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed prop
4040
### Verifying issue for cause 1
4141

4242
- 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:
4444

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.":::
4646

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.
4848

4949
### Resolution
5050

@@ -55,9 +55,9 @@ The Microsoft Edge, Google Chrome, or Firefox web extension isn't installed prop
5555
2. Even if the extension seems installed and enabled, you need to remove it and reinstall it.
5656
3. Restart the browser.
5757

58-
## Cause 2: Launch browser action takes longer than the default timeout
58+
## Cause 2: Launch Browser action takes longer than the default timeout
5959

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.
6161

6262
### Verifying issue for cause 2
6363

@@ -73,20 +73,20 @@ If this adjustment doesn't resolve the issue, follow the steps outlined in [Reso
7373

7474
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.
7575

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**
8181

8282
2. Set up the parameters of the action:
8383
- Launch mode: Launch new Instance
8484
- Initial URL: A default URL
85-
- Rest parameters can be set as desired.
85+
- The remaining parameters can be set as desired.
8686

8787
:::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.":::
8888

89-
3. Insert an error handling policy by:
89+
3. Insert an error handling policy:
9090
- Select the **On error** option in the action window:
9191

9292
:::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.
9595

9696
:::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.":::
9797

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:
9999
- Launch mode: Attach to running instance
100100
- Attach to browser tab: By URL
101101
- 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.
113113
4. Select **Save**.
114114

115115
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.
117117
- Navigate: To URL
118118
- URL: The URL you would like to navigate to.
119119

@@ -123,11 +123,11 @@ Use the Launch Browser action to start the process of the corresponding browser.
123123

124124
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.
125125

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**
131131

132132
2. Set up the parameters of the action:
133133
- Launch mode: Launch new Instance
@@ -136,7 +136,7 @@ Use the Launch Browser action to start the process of the corresponding browser.
136136

137137
:::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.":::
138138

139-
3. Insert an error handling policy by:
139+
3. Insert an error handling policy:
140140
- Select the **On error** option in the action window:
141141

142142
:::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.
149149

150150
:::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.":::
151151

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:
153153
- Launch mode: Attach to running instance
154154
- Attach to browser tab: By URL
155155
- 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
165165

166166
## General checks
167167

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:
169169

170170
- Make sure that the environmental variable `ComSpec` with value `C:\WINDOWS\system32\cmd.exe` exists on the machine.
171171
- (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

Comments
 (0)