Python Forum
Click on a button on web page using Selenium
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click on a button on web page using Selenium
#1
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:
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.
Reply


Messages In This Thread
Click on a button on web page using Selenium - by Pavel_47 - Jul-16-2022, 02:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant click button by script at page michael1834 1 1,117 Dec-08-2023, 04:44 PM
Last Post: SpongeB0B
  Selenium press "select option" button (SOLVED) kucingkembar 0 777 Aug-10-2023, 11:49 AM
Last Post: kucingkembar
  How to make use of this button with selenium? Nohah 0 1,038 Sep-22-2022, 10:22 AM
Last Post: Nohah
  Selenium/Helium loads up a blank web page firaki12345 0 2,078 Mar-23-2021, 11:51 AM
Last Post: firaki12345
  button click error rafarangel 2 3,164 Feb-11-2021, 08:19 PM
Last Post: buran
  Saving html page and reloading into selenium while developing all xpaths Larz60+ 4 4,249 Feb-04-2021, 07:01 AM
Last Post: jonathanwhite1
  Selenium Parsing (unable to Parse page after loading) oneclick 7 6,084 Oct-30-2020, 08:13 PM
Last Post: tomalex
  Selenium Page Object Model with Python Cryptus 5 4,043 Aug-19-2020, 06:30 AM
Last Post: mlieqo
  Selenium on Angular page Martinelli 3 5,792 Jul-28-2020, 12:40 PM
Last Post: Martinelli
  Unable to click element in web page Kalpana 0 1,901 Jun-25-2020, 05:20 AM
Last Post: Kalpana

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020