← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #214617]: How to open and select containt in drop down box?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ddbox = Pattern("some-image.png").targetOffset()
click(ddbox)

If some-image is something visual, that can be found on the screen near
or at the closed drop down box, and target offset points to the box's
click point (evaluyte in Preview window of IDE), then the click() should
open the drop down.

The further steps depend on, wether you know the position of the entry
to select (using type(Key.DOWN) or you can type some characters to
select the entry and then type(Key.ENTER) or it can be selected using
find("entry-text") or it can only be selected using images (baddest
version).

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