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?
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
You can use the Element Exists activity to check the state of any UI element, such as a button, text field, or image.
- Add an Element Exists activity to your process.
- Set the Selector property of the Element Exists activity to the selector of the UI element that you want to check.
- Connect the Element Exists activity to the rest of your process.
Hope this helps
We recommend not to create multiple topics for the same/similar case
element exist will belongs to classic so i want to implement only modern activities
You can do the same with check app state in modern design
Hope it’s clarified @hm00776818