Jul-16-2022, 02:34 PM
Hello,
Here is example where I'm looking for a solution to click on button "Lire plus" on this page:
1 km à pied
Here is my snippet:
Thanks.
Here is example where I'm looking for a solution to click on button "Lire plus" on this page:
1 km à pied
Here is my snippet:
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By options = Options() options.add_argument("--headless") browser = webdriver.Chrome('/usr/bin/chromedriver', options=options) url = 'https://www.arte.tv/fr/videos/103475-006-A/1-km-a-pied/' browser.get(url) buttons = browser.find_elements(By.TAG_NAME, "button") for button in buttons: if button.text == "Lire plus": button.click()Here is output:
Output:selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (104, 1102)
(Session info: headless chrome=102.0.5005.61)
Any suggestions.Thanks.