Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium. xpath error
#2
Try using CSS selector,testet work.
agree_button = browser.find_element(By.CSS_SELECTOR, '#yDmH0d > c-wiz > div > div > div > div.NIoIEf > div.G4njw > div.qqtRac > div.VtwTSb > form:nth-child(3) > div > div > button')
agree_button.click()
Should see if can use YouTube Data API v3 woks,before try to scrape YouTube.
Example in in this post
Reply


Messages In This Thread
selenium. xpath error - by 3lnyn0 - Dec-26-2022, 12:19 PM
RE: selenium. xpath error - by snippsat - Dec-26-2022, 02:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium: Click on a Link Error iamaghost 0 1,429 Mar-02-2021, 12:55 AM
Last Post: iamaghost
  Selenium Chrome error Leo_Red 2 1,900 Nov-05-2020, 02:40 PM
Last Post: Leo_Red
  Need Help Typing Text into Tough Form [xpath / selenium] digitalmatic7 0 1,777 Jun-05-2019, 06:46 AM
Last Post: digitalmatic7
  Getting error str object is not callable in find by xpath sumandas89 3 10,874 Aug-14-2018, 03:05 PM
Last Post: mlieqo

Forum Jump:

User Panel Messages

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