Best practice to check element modern activities

Hi ,
what is the best practice to check each element app state whether control exist or not before we can do any operation like click set?

Hi

The best practice to check each element app state whether control exist or not before we can do any operation like click set is to use the Element Exists activity.

The Element Exists activity allows you to check if a UI element exists on the screen. If the element exists, the activity will return True. If the element does not exist, the activity will return False.

You can use the Element Exists activity to check the state of any UI element, such as a button, text field, or image.

Steps:

  1. Add an Element Exists activity to your process.
  2. Set the Selector property of the Element Exists activity to the selector of the UI element that you want to check.
  3. Connect the Element Exists activity to the rest of your process.

Hope this helps

Cheers @hm00776818

We recommend not to create multiple topics for the same/similar case

Cross References:

element exist will belongs to classic so i want to implement only modern activities

1 Like

You can do the same with check app state in modern design

https://docs.uipath.com/activities/other/latest/ui-automation/n-check-state

@hm00776818

Hope it’s clarified @hm00776818