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

`A Telemetry page_action that performs the "seek" action on media elements.
Action parameters are:
- seconds: The media time to seek to. Test fails if not provided.
- selector: If no selector is defined then the action attempts to seek the first
media element on the page. If 'all' then seek all media elements.
- timeout_in_seconds: Maximum waiting time for the "seeked" event
(dispatched when the seeked operation completes)
to be fired. 0 means do not wait.
- log_time: If true the seek time is recorded, otherwise media
measurement will not be aware of the seek action. Used to
perform multiple seeks. Default true.
- label: A suffix string to name the seek perf measurement.`

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) SeekAction
class SeekAction(telemetry.internal.actions.media_action.MediaAction)
`` |  | Method resolution order: SeekAction 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, seconds, selector=None, timeout_in_seconds=0, log_time=True, label='') 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)`