I’ve been trying to use the find_elements() method of Selenium to extract the element of a webpage, there are 3 elements but the code is only fetching the first one.
This is the part of the code where I’m using the find_elements function:
sections = driver.find_elements(by = By.XPATH, value = '//section[@data-test]')
This image is a portion of the webpage that I’m scrapping.
I used the same code to fetch all the
New contributor
luis torres is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.