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/ui-automation/wrong-ui-element-clicked-populated.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This article provides a solution for an issue where Power Automate for desktop i
13
13
14
14
When you run a desktop flow that includes UI automation actions such as _Click UI element in window_ or _Populate text field in window_, the flow interacts with a different UI element than the one you originally captured.
15
15
16
-
You might observe the following:
16
+
You might observe the following symptoms:
17
17
18
18
- The action executes without errors but targets an unexpected element
19
19
- The wrong element receives the click or text input during runtime
@@ -27,20 +27,20 @@ This issue occurs when the target application handles focus, enable, or disable
27
27
28
28
To resolve this issue, use a combination of UI automation along with mouse and keyboard actions to ensure proper element targeting. Choose one of the following methods based on whether you need to click or populate text.
29
29
30
-
### Click an element using hover and mouse click
30
+
### Click an element by using hover and mouse click
31
31
32
-
Instead of using the **Click UI element in window** action, use this:
32
+
Instead of using the **Click UI element in window** action, use the following steps:
33
33
34
34
1. Add a **Hover mouse over UI element in window** action and select the target UI element.
35
35
1. Add a **Send mouse click** action immediately after to click the element.
36
36
37
37
This approach ensures the element receives focus through the hover action before the click is sent, preventing focus-related issues.
38
38
39
-
### Populate a text field using focus and send keys
39
+
### Populate a text field by using focus and send keys
40
40
41
-
Instead of using the **Populate text field in window** action, use this:
41
+
Instead of using the **Populate text field in window** action, use the following steps:
42
42
43
43
1. Add a **Focus text field in window** action and select the target text field.
44
-
2. Add a **Send keys** action to input the desired text.
44
+
1. Add a **Send keys** action to input the desired text.
45
45
46
46
This approach explicitly sets focus to the correct text field before sending keystrokes, ensuring text is entered in the intended field.
0 commit comments