How to detect the proper image

image

is there a way to make the bot notice the difference? between those 2 images?
button has 2 states
on and off. with yellow bar and without

You need to try different selection image (notice the + crosshair), create image parameter and test it first (IsVisible). Also check uxer YouTube channel for tutorials and knowledge base.

You can use screenshot scraping to detect toggles. It should work in this case.

its not detecting the color properly

its clicking on the element even if I take a screenshot only when its activated, or vice versa

Can you share a link or a complete screenshot of the page so I can try in my end?

And also, can you please share your use case? What you exactly want to achive? I can help you one way or another.

I tried using verify location and it found the correct one.