Is there a way to test 'enabled'/'disabled' status of a button?
Asked by
Landy
I need to verify a menu item is enabled or disabled. The text is same in both status. The only difference is the text is gray in 'disabled' status.
I take snapshots for both status, and write codes as
print find("disabled.
print find("enabled.png")
I expect the similar score have difference so I can use a score boundary to distinguish them. But, the result is: both have same score (0.98)... It looks like the gray or not doesn't effect the score. If so, is there a way to compare the difference? Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.