nerdexam
Microsoft

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.

Support solutions and troubleshooting

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)
  • A
    7% (3)
  • B
    12% (5)
  • C
    78% (32)
  • D
    2% (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.

ACreate a copy of selector.

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.

BOpen UI element definition and add new selector.

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.

CEdit UI element.Correct

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.

DDelete UI element.

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

#Desktop flows#UI elements#Web automation#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full PL-500 Practice