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
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Failed to assume control of Edge or Chrome or Firefox error
3
3
description: Provides a resolution to the error that occurs when running a desktop flow that has a "Launch browser" action in Power Automate.
4
4
ms.reviewer: nimoutzo, jefernn
5
-
ms.date: 03/28/2025
5
+
ms.date: 04/07/2025
6
6
ms.custom: sap:Desktop flows\UI or browser automation
7
7
---
8
8
# "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
65
65
66
66
### Resolution 1
67
67
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.
69
69
70
70
### Resolution 2
71
71
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
+
72
74
1. Insert a new "Launch new browser" action as:
73
75
- Launch new Edge
74
76
- Launch new Chrome
@@ -108,16 +110,18 @@ Increase the values of **Timeout on webpage load** and **Timeout** parameters fo
108
110
3. Set the interval in seconds to **5** by selecting the number of seconds.
109
111
4. Select **Save**.
110
112
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:
112
114
- Web browser instance: The variable produced by the "Launch new browser" action.
113
115
- Navigate: To URL
114
116
- URL: The URL you would like to navigate to.
115
117
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.":::
117
119
118
120
### Resolution 3
119
121
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.
121
125
122
126
1. Insert a new "Launch new browser" action as:
123
127
- Launch new Edge
@@ -141,7 +145,7 @@ Increase the values of **Timeout on webpage load** and **Timeout** parameters fo
141
145
142
146
:::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.":::
143
147
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).
145
149
146
150
:::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.":::
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/browser-automation/web-automation-action-fails-runtime.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Web automation action fails during runtime
3
3
description: Provides a resolution for the issue that a web automation action can't interact with a web element on runtime in Power Automate.
4
4
ms.reviewer: pefelesk
5
-
ms.date: 04/01/2025
5
+
ms.date: 04/02/2025
6
6
ms.custom: sap:Desktop flows\UI or browser automation
7
7
---
8
8
# Can't interact with a web element on runtime
@@ -26,11 +26,11 @@ Some web pages change their underlying HTML structure dynamically. Therefore, th
26
26
27
27
## Resolution 1
28
28
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).
30
30
31
31
## Resolution 2
32
32
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.
34
34
35
35
To achieve that, capture again the web element after the failure, and compare the new CSS selector with the old one.
36
36
CSS selectors can be reviewed and edited through the **Selector builder** window:
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/browser-automation/web-automation-unattended-failures.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ ms.custom: sap:Desktop flows\UI or browser automation
5
5
ms.reviewer: amitrou
6
6
ms.author: amitrou
7
7
author: amitrou
8
-
ms.date: 03/28/2025
8
+
ms.date: 04/07/2025
9
9
---
10
10
# Web automation action fails in unattended mode
11
11
@@ -25,7 +25,7 @@ This error might be caused due to the following reasons:
25
25
26
26
#### The browser doesn't start and the browser window isn't visible
27
27
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).
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:
53
53
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)
56
56
57
57
1. If increasing the timeout doesn't resolve the issue, use the following actions to obtain a browser instance:
58
58
@@ -66,6 +66,8 @@ To work around this issue,
66
66
67
67
To work around this issue, ensure that the user running the cloud flow in unattended mode has the browser extension installed.
68
68
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
+
69
71
#### The machine's CPU usage reaches 100%, preventing the service worker of the web extension from starting
70
72
71
73
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