Try using CSS selector,testet work.
Example in in this post
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