telemetry.internal.actions.loop
index
telemetry/internal/actions/loop.py

A Telemetry page_action that loops media playback.
 
Action parameters are:
- loop_count: The number of times to loop media.
- selector: If no selector is defined then the action attempts to loop the first
            media element on the page. If 'all' then loop all media elements.
- timeout_in_seconds: Timeout to wait for media to loop. Default is
                      60 sec x loop_count. 0 means do not wait.

 
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)
LoopAction

 
class LoopAction(telemetry.internal.actions.media_action.MediaAction)
    
Method resolution order:
LoopAction
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, loop_count, selector=None, timeout_in_seconds=None)

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)