I have 2 exact same images (pattern, color, size ,everything is same) on the screen and in this case how do I click on Image 1?
Whenever I am using the s.click()
function, Sikuli tries to click on Image 1 some times and sometimes on Image 2.
I have tried Pattern
and exists
but they are also not working as expected.
Pattern imagePatternPath = new Pattern("Image.png").exact();
screen.click(imagePatternPath);
I expect to click on Image 1, but the actual output is sometime it clicks on Image 1 and sometimes on Image 2.