It will never select the last page, because the method always clicks on a middle page