button highlighted

Experiences, small talk, and other automation gossip.
Posts: 1
Joined: Fri May 18, 2018 9:16 am

button highlighted

Post by newbee » Fri May 18, 2018 9:23 am

I want to test in the windwos calculator if the button that the mouse is on gets highlighted or not (turns form grey to orange) but I didn't manage to do a screenshot of the button when it is orange - so if i want it to compare it compares the hightlighted orange with the usual grey and fails...

how can I manage this?

Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland

Re: button highlighted

Post by Fergal » Tue May 22, 2018 9:09 am

It's not exactly what you are looking for, but you could validate that the button has focus when you move the mouse over it. Your test would look something like this:


Does that help at all?