0

I'm a beginner for selenium. I want to know how to inspect the quality of a video like(144p,240p,720p..) in settings button in youtube playback.

  • This question has already been answered on stackoverflow, please check the following :https://stackoverflow.com/questions/26306566/how-to-get-inspect-element-code-in-selenium-webdriver – salsinga Jan 28 '20 at 13:30
  • Does this answer your question? [How to get Inspect Element code in Selenium WebDriver](https://stackoverflow.com/questions/26306566/how-to-get-inspect-element-code-in-selenium-webdriver) – MarkusEgle Jan 28 '20 at 14:28

1 Answers1

0

Press f12 and right click on the element you want to select, select copy xpath. Following is the xpath for the settings option and child it has respectively

//*[@id="movie_player"]/div[25]/div[2]/div[2]/button[3]
 document.querySelector("#ytp-id-21")
salsinga
  • 1,957
  • 1
  • 14
  • 26