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

`# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

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) LoadMediaAction
class LoadMediaAction(telemetry.internal.actions.media_action.MediaAction)
`` | `For calling load() on media elements and waiting for an event to fire.`
| Method resolution order: LoadMediaAction 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 JS code prior to running the action.` __init__(self, selector=None, timeout_in_seconds=0, event_to_await='canplaythrough') 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)`