Getting duration of a video

is there a way of getting the duration of a youtube video and make the robot wait for the duration to proceed with the next step?

Hi @Edwin_Huamani,

Yes, when the video finishes something either appears or desappears so you can take advantage of this by using element exist or wait for element to vanish and then do something once the video finishes.

Possible. You have to use the ytp-time-duration class in the selector and thereby fetch the hours and minutes. Attached code does it for you.

GetYoutubeVideoDuration.xaml (7.5 KB)

1 Like