← Back to team overview

sikuli-driver team mailing list archive

[Question #672133]: How to write code for click Particular image. If screen has multiple of the same images on screen

 

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

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;

Pattern(filePath +prop.getProperty("Image1"));

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

screen.find(Dptn).left(3).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. 

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.