← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #187279]: Right Click Context Menu In Tree View Invisible

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ok, you need the visual approach ;-)

did you check with "run in slow motion" (yellow triangle), wether the
right places are hovered?

another problem might be timing: the next click action might come too
fast. So try this:

    click("Folder-1.png"); wait(0.5)
    rightClick("Folder.png")

BTW: this looks strange and suboptimal (2 subsequent find operations)
Only one image is needed I guess:

    click("Folder-1.png"); wait(0.5)
    rightClick(getLastMatch())

since we already know, where to rightClick()

even if two click points are needed, then make the shot, so that one is
in the center of the image and for the other define a targetOffset with
Preview or manually:

    click(find("Folder-1.png").getCenter()); wait(0.5) # clicks the center
    click(getLastMatch()) # clicks at the target offset

typical situation in Windows Explorer trees: first click selects node,
second click clicks the + to open the subfolder.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.