← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663391]: Action (Click/Type) on similar elements on a screen

 

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

Vin Uppinkudru posted a new comment:
Hi RaiMan,

Thank you so much for you help. I was able to use the Target Offset on
the pattern and i was able to achieve the goal.

Below is the snippet i used

         Step1 : Pattern p1 = new Pattern("label.PNG");

        Step2: Pattern p2= new Pattern(p1).targetOffset(100,0);

        Step3: Compare the image with pattern p2 matches to a desired
image

        Step3: screen.type(p2, "text");

One thing i would like to improvise is to implement Step3 where the i
would like match  pattern at the target offset with a desired image.

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