← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #293874]: I want to find a Element e.g. a Drop down icon in my Page.

 

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

    Status: Open => Answered

masuo proposed the following answer:
If some unique images are near the icon , use that image instead of icon image  as parameter for click.
And specify the offset that is distance between that image and icon image.

[example:]
click(Pattern("1463588461092.png").targetOffset(10,20))

The IDE supports adjusting the targetOffset of captured images using the Preview Pane.
http://sikulix-2014.readthedocs.io/en/latest/pattern.html

Tutorial that shows you how to deal with such cases have also been published .
http://sikulix-2014.readthedocs.io/en/latest/tutorials/checkone/checkone.html

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