Environment: User desktop application (exe).
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?