Link Search Menu Expand Document

mediarecorder.test.hasPlayed

description

Tests whether the recording was ever played back.

syntax

getMediaRecorder(ELEMENT_NAME).test.hasPlayed()

example(s)


@newMediaRecorder("recorder")
@    .log()
@    .print()
,
@newButton("next", "Press to go to the next page")
@    .print()
@    .wait(getMediaRecorder("recorder").test.hasPlayed())
  • Initiates new media recorder, and allows going to the next page by the button press only after the recording has played.