Ramco Ramco

Ramco Ramco

  • 462
  • 2.9k
  • 408.6k

How to click youtube like button

Apr 10 2024 1:44 PM

Hi

  How to click Youtube like button using selenium . I am trying below code but not working

var like_btn = _driver.FindElement(By.XPath("//div[@id='info']//ytd-toggle-button-renderer[1]//a[1]//yt-icon-button[1]//button[1]//yt-icon[1]"));

Thanks


Answers (4)