Issue of the Image Locator

I found that the Image Locator can’t detect the element that I pick if I switch the screen from the laptop to the monitor. Which mean that, when I use the Image Locator to pick an element, the robot can detect the element when I didn’t connect with my monitor but my only laptop screen, but if I connected the monitor with ‘Second Screen Only’, the robot itself can’t detect the element, if I disconnect the monitor, it will work again. Vice versa, if I pick the element from monitor screen, and switch it back to laptop screen, the element doesn’t find. How can I solve this issue?

This is the success ss when I run the robot which the element was picked when I connect my laptop with monitor.

This is the failed result when I run the robot which the element was picked when I connect my laptop with monitor but disconnect the monitor after pick it, and run the robot in my laptop screen but not the monitor

Image locators are very fragile, so you need to make sure that all the settings on monitors are same(resolution etc.). Also multiple monitor setups is not reliable. If there is no other option that use image locators it would be best to create and test them on same setup as they will be ran on in production.

I see, wish the issue could be improved in the future as the robot need to pass to different laptop :grinning:

This is not Robocorp issue in general but more how image locators work. It only makes sense to use image locators if all other locator types are not working.

1 Like