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.
Asked
Active
Viewed 130 times
0
-
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 Answers
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
-
After Pressing F12 and then i right clicked on setting button in youtube window but i'm not able to inspect and it is giving option as loop,copy video URL,etc.can u please help me? – P.LEELA KRISHNAN Jan 29 '20 at 12:20
-
-