KeyModifier.SHIFT + Key.END + Key.PAGE_DOWN not working to select all item in list box

Asked by Reshma Thakur

Hi,

I am working with flash website, It has dynamic list box with scroll bar (in case items are more in the list box), if i press shift+end+page down key, I am able to select all the values in the list box, but same thing is not working with sikuli

type(KeyModifier.SHIFT + Key.END + Key.PAGE_DOWN)

I need to find a way to select all the item in the dynamic list box. I am automating all sikuli steps in selenium using eclipse.

Any help will be appreciated!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

If you are using Windows, it is likely caused by NumLock key.
similar question is here.
https://answers.launchpad.net/sikuli/+question/285144

Revision history for this message
RaiMan (raimund-hocke) said :
#2

besides the fact, that the mentioned use is not working anyway, since the modifier keys have to be given as a second parameter to type, it is not possible to tell type to press more than one key at a time.

You have to use the keyDown()/keyUp() feature:

keyDown(Key.END)
keyDown(Key.PAGE_DOWN)
keyDown(Key.SHIFT)
wait(0.3)
KeyUp()

You have to try out, wether the sequence is of relevance and wether the wait() is needed (web gui's often need some time to get aware of key or mouse button changes)

Can you help with this problem?

Provide an answer of your own, or ask Reshma Thakur for more information if necessary.

To post a message you must log in.