PL-500 · Question #198
You build a desktop flow. You click the submit button of a web form in a web browser and the process fails. You need to fix the process. What should you do?
The correct answer is C. Edit UI element. When a UI element selector fails to locate a web element, editing the UI element allows you to update its selector attributes to correctly target the current state of the element.
Question
You build a desktop flow. You click the submit button of a web form in a web browser and the process fails. You need to fix the process. What should you do?
Options
- ACreate a copy of selector.
- BOpen UI element definition and add new selector.
- CEdit UI element.
- DDelete UI element.
How the community answered
(41 responses)- A7% (3)
- B12% (5)
- C78% (32)
- D2% (1)
Why each option
When a UI element selector fails to locate a web element, editing the UI element allows you to update its selector attributes to correctly target the current state of the element.
Creating a copy of a selector duplicates a broken selector and does not fix the underlying mismatch between the stored selector and the target element.
Opening the UI element definition and adding a new selector appends an additional selector rather than repairing the existing broken one, which may not resolve the original failure.
Editing the UI element opens the element's properties where you can modify or recapture the selector attributes, fixing the mismatch between the stored selector and the actual DOM element. This directly resolves the click failure by updating the element definition without losing its reference in the flow actions.
Deleting the UI element removes it from the flow entirely, requiring it to be re-created and re-referenced in all flow actions, which is destructive and unnecessary.
Concept tested: Editing UI element selector to fix automation failure
Source: https://learn.microsoft.com/en-us/power-automate/desktop-flows/ui-elements
Topics
Community Discussion
No community discussion yet for this question.