← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268554]: findAll() after PAGE_DOWN does not work

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
a findAll() ALWAYS returns a new iterator when called.

Your problem might be timing:
after the issue of the PageDown, the findAll() immediately starts and the first thing it does  is to make a screenshot to find the target images in that shot.

I guess this happens so fast, that the page itself is not yet scrolled
down.

So after the 
type(Key.PAGE_DOWN)

just insert a
wait(1) 
# adjust the time to the minimum needed or use any other hack, to wait for the end of scrolling

to give time to the webpage to finish scrolling

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