sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30701
Re: [Question #262811]: Is there a way to iterate through all these images in a smart way?
Question #262811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262811
Status: Open => Answered
RaiMan proposed the following answer:
usually, such arrangements like you are talking about have some regular
geometry like even line height.
So if you know the position of the first line, you can simply click the
next, by adding the line height to the y-value of the current click
point.
lineHeight = 20
link = find("firstLink.png")
for i in range(500):
link.click()
link.y += lineHeight
On the other hand, clicking tons of links on a page is more something
for Selenium, that can access the site content.
all the other things are simply Python language:
images = ("image1.png", image2.png", ....)
for image in images:
find(image)
click()
... and so on
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.