The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

youtube.test.playing

description

Tests whether the video is currently playing.

syntax

getYoutube(ELEMENT_NAME).test.playing()

example(s)


@nnewYoutube("myYoutube", "aFPtc8BVdJk")
@  .print()
@,
@newButton("Next")
@  .print()
@  .wait(
$    getVideo("myYoutube").test.playing()
$    .failure( newText("Please let the video finish first").print() )
@  )
  • After the button Next is pressed and the printed video is still playing, the program will throw error saying that the video should be finished first.