Question #672133 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/672133

Description changed to:
How to write code for click Particular image. If screen has multiple of
the same images on screen.

Please Check below code

screen = new screen();

boolean lg=false;

Pattern Dptn;

Pattern Eptn;

Dptn= new Pattern(filePath +prop.getProperty("Image1"));

Eptn= new Pattern(filePath +prop.getProperty("Image2"));

screen.find(Dptn).left(4).highlight(4);

Thread.sleep(8000);

screen.click(Eptn);                
 
Dptn=null;

Eptn=null;

ImagePath.remove(filePath +prop.getProperty("Image1"));
                                
ImagePath.remove(filePath +prop.getProperty("Image2"));

break;

But I'm unable to click on Image2. same screen like image2 we have 10
same images.

Please help me to write a code.

Thanks & Regards,
Venkat

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to