@bobsilverberg I played with this a couple of times and found that  clicking the button 4 times makes the pager stick to the current pager under test. I have this passing consistently.

Your approach would not work because the pager would switch before we run through the list of images each time so the test will always be waiting.