How to find a button is enabled or disabled using computer vision activities?
What kind of button are you talking about?
if you wants to know if the button is appeared or not use CV Element exists.
I want to check a button named “select customer” is enabled or not. If enabled, i need to click that button.
Kindly refer the image for more information.
You can use cv element exists activity Navigate to the properties create a variable inside the results field like Element_Exists. and take one if condition mention like this Element_Exists=True. And also maintain a delay before and delay after. Finally inside the then Use CV Click.
I have tried with CV Element Exists, it is returning True for both enabled and disabled states.
Maybe you can try something like getInnerText (the goal is to get the attribute of the button) and check in the attribute if it’s enabled or not and then act in consequence ?
I don’t know if getInnerText is the best but i think it exists other activities that can do that
Please try UiPath.Core.Acitivities.GetAttribute to check if it’s enabled or not.
Depending on the result you can follow up with your next activity.