Is there a way to click the same image 4 times?

Asked by jerryroy1

I need to click a scroll down arrow but in my case it is 4 times to get to the image I need for the next event. Is ther a way to shorten this?

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
Sergey Darovskih (darovskih) said :
#1

while not find(yourimage):
    click(scrolldownarrow)

is this what you want?

Revision history for this message
Jeremy (j0k3r) said :
#2

It could be handle with image, yes.
But this image can be different for each browser, for each OS, etc ...

I just try with
type(Key.DOWN + Key.DOWN)
or
type(Key.PAGE_DOWN)

but nothing happend ... (Windows XP)

Revision history for this message
Eric Brock (eric-brock21) said :
#3

Try creating your image as a separate variable.

Ex:

t = find( "whatever image or png you are trying to click on" )
click ( t )
click ( t )
click ( t )
click ( t )

Can you help with this problem?

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

To post a message you must log in.