Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created January 20, 2020 13:29
Show Gist options
  • Save ahmedbesbes/84892eadd87efc4526294a9aa89c6941 to your computer and use it in GitHub Desktop.
Save ahmedbesbes/84892eadd87efc4526294a9aa89c6941 to your computer and use it in GitHub Desktop.
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