Created
July 30, 2020 22:04
-
-
Save jlggross/da5fdeecd0cf4c8ac872038ef539192f to your computer and use it in GitHub Desktop.
Getting all elements with Selenium webdriver
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
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