Skip to main content

If Desktop Element Exists

Command description

Check whether the specified desktop element exists and execute the indented child commands when the selected condition is met.

Command Input Parameters

input parametersInput parameter typeDescription
Desktop ElementstrCaptured desktop element UID, not element name, not ms-rpa-id
Element StateenumExists, Does Not Exist; run the indented child commands when the selected condition is met
Element Wait TimeoutnumberMaximum time to wait for the element to appear or disappear, in seconds

Command Output Parameters

None

Element status

  • Exists: Wait for the element to appear, up to the configured duration. Execute the child commands if it appears.
  • Does Not Exist: Wait for the element to disappear, up to the configured duration. Execute the child commands if it is absent.
tip

Example