telemetry.internal.actions.play | index telemetry/internal/actions/play.py

`A Telemetry page_action that performs the "play" action on media elements.
Media elements can be specified by a selector argument. If no selector is
defined then then the action attempts to play the first video element or audio
element on the page. A selector can also be 'all' to play all media elements.
Other arguments to use are: playing_event_timeout_in_seconds and
ended_event_timeout_in_seconds, which forces the action to wait until
playing and ended events get fired respectively.`

Modules
`` |  |
telemetry.core.exceptions | telemetry.internal.actions.media_action | telemetry.internal.actions.page_action |

Classes
`` |  | telemetry.internal.actions.media_action.MediaAction(telemetry.internal.actions.page_action.PageAction) PlayAction
class PlayAction(telemetry.internal.actions.media_action.MediaAction)
`` |  | Method resolution order: PlayAction telemetry.internal.actions.media_action.MediaAction telemetry.internal.actions.page_action.PageAction __builtin__.object Methods defined here: RunAction(self, tab) WillRunAction(self, tab) `Load the media metrics JS code prior to running the action.` __init__(self, selector=None, playing_event_timeout_in_seconds=0, ended_event_timeout_in_seconds=0) Methods inherited from telemetry.internal.actions.media_action.MediaAction: HasEventCompletedOrError(self, tab, selector, event_name) LoadJS(self, tab, js_file_name) `Loads and executes a JS file in the tab.` WaitForEvent(self, tab, selector, event_name, timeout_in_seconds) `Halts media action until the selector's event is fired. Args: tab: The tab to check for event on. selector: Media element selector. event_name: Name of the event to check if fired or not. timeout_in_seconds: Timeout to check for event, throws an exception if not fired.` Methods inherited from telemetry.internal.actions.page_action.PageAction: CleanUp(self, tab) Data descriptors inherited from telemetry.internal.actions.page_action.PageAction: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`