What needs to be accomplished:
Adding error handling, where if an inactive button is clicked the robot show message like “The button is unclickable now”.
Problem:
When trying to click an unclickable button, there is no error threw by robot (means the click itself was successful, but no action is done).
Tried inspecting the buttons, the panels, even other elements and windows possible with UiExplorer, found no difference with the selectors whether the button is clicked or not. Same name, same class, same parent name class and no other specific attributes (how come?)
The only difference I noticed was the button appearance (the text was black when clickable and grey when unclickable) but I would like to prevent doing image compare (and since the only appearance difference was the subtle text color, I’m afraid it will be very difficult to do so)
Does anyone have any idea what to check/try in this kind of case?
Did you compare aastate or disabled attributes as well? Usually they change when the button is enabled or disabled. You can get these values using Get Attribute.
Hi @vvaidya
I tried your solution Get Attribute activity, but I can’t find which attribute means Disable in Windows Forms apps.
It seems we can know attribute values only within selector attributes finding in UiExplorer.
e.g. ctrlname
Hello @vvaidya. Checked it, and worked in my case!
The “aastate” attribute value changed when the button is inactive.
Thank you !
Just wondering, how do get all the list of the properties like in your screenshot? While using Get Attribute I have to specify the attribute name. Is there anyway to get all available attributes?