Skip to content

Commit 885b606

Browse files
authored
some updates
1 parent 1e2c3a6 commit 885b606

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Failed to assume control of Edge or Chrome or Firefox error
33
description: Provides a resolution to the error that occurs when running a desktop flow that has a "Launch browser" action in Power Automate.
44
ms.reviewer: nimoutzo, jefernn
5-
ms.date: 03/28/2025
5+
ms.date: 04/07/2025
66
ms.custom: sap:Desktop flows\UI or browser automation
77
---
88
# "Failed to assume control of Microsoft Edge/Chrome/Firefox" error
@@ -65,10 +65,12 @@ Execution of a desktop flow with one of the respective actions fails with the er
6565

6666
### Resolution 1
6767

68-
Increase the values of **Timeout on webpage load** and **Timeout** parameters for the "Launch new Edge", "Chrome", or "Firefox" action. For example, set these values to 120 seconds. If this adjustment doesn't resolve the issue, follow the steps outlined below.
68+
In the **Launch new Edge**, **Launch new Chrome**, or **Launch new Firefox** action, increase the values of **Timeout on webpage load** and **Timeout** parameters located in the **Advanced** section. For example, set these values to **120** seconds. If this adjustment doesn't resolve the issue, follow the steps outlined below.
6969

7070
### Resolution 2
7171

72+
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.
73+
7274
1. Insert a new "Launch new browser" action as:
7375
- Launch new Edge
7476
- Launch new Chrome
@@ -108,16 +110,18 @@ Increase the values of **Timeout on webpage load** and **Timeout** parameters fo
108110
3. Set the interval in seconds to **5** by selecting the number of seconds.
109111
4. Select **Save**.
110112

111-
6. Insert a "Go to Web page" action and set up the parameters of the action:
113+
6. Insert a **Go to web page** action and set up the parameters of the action:
112114
- Web browser instance: The variable produced by the "Launch new browser" action.
113115
- Navigate: To URL
114116
- URL: The URL you would like to navigate to.
115117

116-
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/select-parameters-in-go-to-web-page.png" alt-text="Configure the parameters of the Go to Web page action.":::
118+
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/select-parameters-in-go-to-web-page.png" alt-text="Configure the parameters of the Go to web page action.":::
117119

118120
### Resolution 3
119121

120-
Increase the values of **Timeout on webpage load** and **Timeout** parameters for the "Launch new Edge", "Chrome", or "Firefox" action. For example, set these values to 120 seconds. If this adjustment doesn't resolve the issue, follow the steps outlined below.
122+
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.
123+
124+
In the **Launch new Edge**, **Launch new Chrome**, or **Launch new Firefox** action, increase the values of **Timeout on webpage load** and **Timeout** parameters located in the **Advanced** section. For example, set these values to **120** seconds. If this adjustment doesn't resolve the issue, follow the steps outlined below.
121125

122126
1. Insert a new "Launch new browser" action as:
123127
- Launch new Edge
@@ -141,7 +145,7 @@ Increase the values of **Timeout on webpage load** and **Timeout** parameters fo
141145

142146
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/save-settings-on-error.png" alt-text="Select the Continue flow run and Go to next action options and then save the settings.":::
143147

144-
4. Insert a "Wait" action and set its duration to 90 seconds (adjust duration as needed).
148+
4. Insert a **Wait** action and set its duration to **90** seconds (adjust duration as needed).
145149

146150
:::image type="content" source="media/failed-to-assume-control-of-edge-chrome-firefox-error/wait-action.png" alt-text="Insert a Wait action with value set to 90.":::
147151

support/power-platform/power-automate/desktop-flows/browser-automation/web-automation-action-fails-runtime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Web automation action fails during runtime
33
description: Provides a resolution for the issue that a web automation action can't interact with a web element on runtime in Power Automate.
44
ms.reviewer: pefelesk
5-
ms.date: 04/01/2025
5+
ms.date: 04/02/2025
66
ms.custom: sap:Desktop flows\UI or browser automation
77
---
88
# Can't interact with a web element on runtime
@@ -26,11 +26,11 @@ Some web pages change their underlying HTML structure dynamically. Therefore, th
2626

2727
## Resolution 1
2828

29-
To solve this issue, you can try to [repair the CSS selector](/power-automate/desktop-flows/repair-selector).
29+
Try to [repair the CSS selector](/power-automate/desktop-flows/repair-selector).
3030

3131
## Resolution 2
3232

33-
To solve this issue, you can manually create a new robust CSS selector. It will be able to locate the element of interest even though the HTML structure changes.
33+
Manually create a new robust CSS selector. It will be able to locate the element of interest even though the HTML structure changes.
3434

3535
To achieve that, capture again the web element after the failure, and compare the new CSS selector with the old one.
3636
CSS selectors can be reviewed and edited through the **Selector builder** window:

support/power-platform/power-automate/desktop-flows/browser-automation/web-automation-unattended-failures.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.custom: sap:Desktop flows\UI or browser automation
55
ms.reviewer: amitrou
66
ms.author: amitrou
77
author: amitrou
8-
ms.date: 03/28/2025
8+
ms.date: 04/07/2025
99
---
1010
# Web automation action fails in unattended mode
1111

@@ -25,7 +25,7 @@ This error might be caused due to the following reasons:
2525

2626
#### The browser doesn't start and the browser window isn't visible
2727

28-
To work around this issue, make sure that the browser start isn't blocked in unattended mode. Verify by using the actions listed and make sure that browser opens and the window is visible.
28+
To work around this issue, make sure that the browser start isn't blocked in unattended mode. Verify by using the actions listed and make sure that browser opens and the window is visible. To create the corresponding action, copy the following command and paste it in the [flow designer](/power-automate/desktop-flows/flow-designer).
2929

3030
For Chrome:
3131

@@ -49,10 +49,10 @@ WebAutomation.LaunchEdge.AttachToEdgeByUrl TabUrl: $'''https://www.microsoft.com
4949

5050
To work around this issue,
5151

52-
1. Increase the default values of the following parameters:
52+
1. In the **Launch new Microsoft Edge**, **Launch new Chrome**, or **Launch new Firefox** action. increase the default values of the following parameters located in the **Advanced** section:
5353

54-
- Timeout on webpage load (for example, set to 120 seconds)
55-
- Timeout (for example, set to 120 seconds)
54+
- **Timeout on webpage load** (for example, set to **120** seconds)
55+
- **Timeout** (for example, set to **120** seconds)
5656

5757
1. If increasing the timeout doesn't resolve the issue, use the following actions to obtain a browser instance:
5858

@@ -66,6 +66,8 @@ To work around this issue,
6666
6767
To work around this issue, ensure that the user running the cloud flow in unattended mode has the browser extension installed.
6868
69+
To check the browser extension installation, you can go through the **Tools** > **Browser extensions** options in the [flow designer](/power-automate/desktop-flows/flow-designer). For more information, see [Install Power Automate browser extensions](/power-automate/desktop-flows/install-browser-extensions#install-browser-extensions).
70+
6971
#### The machine's CPU usage reaches 100%, preventing the service worker of the web extension from starting
7072
7173
To work around this issue, provide more CPU resources to the machine where the flow is executed. For more information, see [Prerequisites](/power-automate/desktop-flows/requirements#prerequisites).

0 commit comments

Comments
 (0)