sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11695
Re: [Question #202853]: Drag or mouseDown won't grab a selection
Question #202853 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/202853
RaiMan posted a new comment:
my Finder column has 4 entries.
each entry line is 18 pixels high (measured using cmd-shift-4)
img = "QnativeFinde.png" # image of the first entry including part of the toolbar
m = find(img).getCenter() # pixel location (x,y) on the first entry
#hover(m)
click(m.below(4*18)) # click below to activate window
m.below(4*18)
creates a new pixel location by adding 72 to m's y value and hence will click in the white area just below the 4th entry and activate the Finder window.
I always do this with regular GUI situations while testing, so later I could replace variables:
nLines = 4
lineHeight = 18
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.