Skip to content

Instantly share code, notes, and snippets.

@jlggross
Created July 30, 2020 22:04
Show Gist options
  • Save jlggross/da5fdeecd0cf4c8ac872038ef539192f to your computer and use it in GitHub Desktop.
Save jlggross/da5fdeecd0cf4c8ac872038ef539192f to your computer and use it in GitHub Desktop.
Getting all elements with Selenium webdriver
elements = driver.find_elements_by_xpath(xpath[:-3])
for element in elements:
print(element.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment