Created
January 20, 2020 13:29
-
-
Save ahmedbesbes/84892eadd87efc4526294a9aa89c6941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def go_next_page(): | |
try: | |
button = driver.find_element_by_xpath('//a[@class="button button--primary next-page"]') | |
return True, button | |
except NoSuchElementException: | |
return False, None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment