R Selenium wait for “next” button and click until no longer there I’m dealing with a dynamically loaded page.