Announcements
The root cause is that Move mouse to image only matches what's visibly on screen and the moment your mouse pointer sits over the tab, it changes the tab's pixels enough that the saved image no longer matches. That's why your selected/unselected images work fine, but anything involving the hover state is unreliable.
Move mouse to image
For Excel specifically, there's no need to click the tab visually at all. Use Set active Excel worksheet instead it activates a sheet by name or index and is far more reliable than image matching.
If you do need to interact with the tab visually, capture it as a UI element and use Click UI element in window with a text-based selector (e.g. the tab name "Code"). That's built on UIA/MSAA selectors and doesn't break when the cursor changes the appearance.
Click UI element in window
Best regards, Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly. ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :). 🏷️ For follow-ups @Valantis. 📝 https://valantisond365.com/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 377
11manish 279
David_MA 234 Super User 2026 Season 1