enter image description here
How to click all buttons on my page if there is 5 of them or more? I need to do this with selenium, thank you!
here is what i’ve tried
while True:
if not driver.find_elements(By.CLASS_NAME, 'products-tile__btn'):
with open("link_page.html", "w") as file:
file.write(driver.page_source)
break
else:
actions = ActionChains(driver)
actions.move_to_element(find_more_element).perform()
time.sleep(3)```
New contributor
Daydream is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.