robotframework-imagehorizonlibrary
robotframework-imagehorizonlibrary copied to clipboard
Locate Dont search on all screens
Locate can`t find image when is located on other screen, maybe you can use different method (locateAllOnScreen() as fallback when first failed)
https://pyautogui.readthedocs.io/en/latest/cheatsheet.html#screenshot-functions
This is a valid concern, but I think we would rather want to be able to explicitly tell what screen is used rather than doing something that potentially takes a while and provides false positives. More research for best approach is definitely needed.
I'm not completely sure if the following works, but I suggest you try setting the screen you want as your main screen. That ought to direct the locate to a correct place. Please leave a comment if this works or does not work for you.
I use it for specific case when web browser is spread across multiple displays. And for this case i dont want to use xpath or jquery. I want to check location.
So did the proposed workaround work for you or not?
No this solution is not working, but i will try later with virtual-desktops, maybe they will work, but I expect that they will also not be visible. This is not critical issue its more like nice to have it test.