| Index: tools/telemetry/docs/telemetry.page.actions.play.html
|
| diff --git a/tools/telemetry/docs/telemetry.page.actions.click_element.html b/tools/telemetry/docs/telemetry.page.actions.play.html
|
| similarity index 57%
|
| copy from tools/telemetry/docs/telemetry.page.actions.click_element.html
|
| copy to tools/telemetry/docs/telemetry.page.actions.play.html
|
| index a55f8fc5b663c44352ba9b0cd4113a6d3c54e810..88ece2442907d8b044ddad9240dcff5080f4245a 100644
|
| --- a/tools/telemetry/docs/telemetry.page.actions.click_element.html
|
| +++ b/tools/telemetry/docs/telemetry.page.actions.play.html
|
| @@ -1,17 +1,22 @@
|
|
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
| -<html><head><title>Python: module telemetry.page.actions.click_element</title>
|
| +<html><head><title>Python: module telemetry.page.actions.play</title>
|
| </head><body bgcolor="#f0f0f8">
|
|
|
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
| <tr bgcolor="#7799ee">
|
| <td valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.page.html"><font color="#ffffff">page</font></a>.<a href="telemetry.page.actions.html"><font color="#ffffff">actions</font></a>.click_element</strong></big></big></font></td
|
| +<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.page.html"><font color="#ffffff">page</font></a>.<a href="telemetry.page.actions.html"><font color="#ffffff">actions</font></a>.play</strong></big></big></font></td
|
| ><td align=right valign=bottom
|
| -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/page/actions/click_element.py">telemetry/page/actions/click_element.py</a></font></td></tr></table>
|
| - <p><tt># Copyright (c) 2012 The Chromium Authors. All rights reserved.<br>
|
| -# Use of this source code is governed by a BSD-style license that can be<br>
|
| -# found in the LICENSE file.</tt></p>
|
| +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/page/actions/play.py">telemetry/page/actions/play.py</a></font></td></tr></table>
|
| + <p><tt>A Telemetry page_action that performs the "play" action on media elements.<br>
|
| + <br>
|
| +Media elements can be specified by a selector attribute. If no selector is<br>
|
| +defined then then the action attempts to play the first video element or audio<br>
|
| +element on the page. A selector can also be 'all' to play all media elements.<br>
|
| + <br>
|
| +Other attributes to use are: wait_for_playing and wait_for_ended, which forces<br>
|
| +the action to wait until playing and ended events get fired respectively.</tt></p>
|
| <p>
|
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| <tr bgcolor="#aa55cc">
|
| @@ -20,8 +25,8 @@
|
|
|
| <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br>
|
| +</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
| </td><td width="25%" valign=top><a href="telemetry.page.actions.page_action.html">telemetry.page.actions.page_action</a><br>
|
| -</td><td width="25%" valign=top><a href="telemetry.page.page.html">telemetry.page.page</a><br>
|
| </td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br>
|
| </td></tr></table></td></tr></table><p>
|
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| @@ -34,7 +39,7 @@
|
| <dt><font face="helvetica, arial"><a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
| </font></dt><dd>
|
| <dl>
|
| -<dt><font face="helvetica, arial"><a href="telemetry.page.actions.click_element.html#ClickElementAction">ClickElementAction</a>
|
| +<dt><font face="helvetica, arial"><a href="telemetry.page.actions.play.html#PlayAction">PlayAction</a>
|
| </font></dt></dl>
|
| </dd>
|
| </dl>
|
| @@ -42,23 +47,29 @@
|
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| <tr bgcolor="#ffc8d8">
|
| <td colspan=3 valign=bottom> <br>
|
| -<font color="#000000" face="helvetica, arial"><a name="ClickElementAction">class <strong>ClickElementAction</strong></a>(<a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>)</font></td></tr>
|
| +<font color="#000000" face="helvetica, arial"><a name="PlayAction">class <strong>PlayAction</strong></a>(<a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>)</font></td></tr>
|
|
|
| <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
| <td width="100%"><dl><dt>Method resolution order:</dt>
|
| -<dd><a href="telemetry.page.actions.click_element.html#ClickElementAction">ClickElementAction</a></dd>
|
| +<dd><a href="telemetry.page.actions.play.html#PlayAction">PlayAction</a></dd>
|
| <dd><a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a></dd>
|
| <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
| </dl>
|
| <hr>
|
| Methods defined here:<br>
|
| -<dl><dt><a name="ClickElementAction-RunAction"><strong>RunAction</strong></a>(self, page, tab, previous_action)</dt></dl>
|
| +<dl><dt><a name="PlayAction-HasEventCompleted"><strong>HasEventCompleted</strong></a>(self, tab, selector, event_name)</dt></dl>
|
| +
|
| +<dl><dt><a name="PlayAction-RunAction"><strong>RunAction</strong></a>(self, page, tab, previous_action)</dt></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-__init__"><strong>__init__</strong></a>(self, attributes<font color="#909090">=None</font>)</dt></dl>
|
| +<dl><dt><a name="PlayAction-WaitForEvent"><strong>WaitForEvent</strong></a>(self, tab, selector, event_name, timeout)</dt><dd><tt>Halts play action until the selector's event is fired.</tt></dd></dl>
|
| +
|
| +<dl><dt><a name="PlayAction-WillRunAction"><strong>WillRunAction</strong></a>(self, page, tab)</dt><dd><tt>Load the media metrics JS code prior to running the action.</tt></dd></dl>
|
| +
|
| +<dl><dt><a name="PlayAction-__init__"><strong>__init__</strong></a>(self, attributes<font color="#909090">=None</font>)</dt></dl>
|
|
|
| <hr>
|
| Methods inherited from <a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br>
|
| -<dl><dt><a name="ClickElementAction-BindMeasurementJavaScript"><strong>BindMeasurementJavaScript</strong></a>(self, tab, start_js, stop_js)</dt><dd><tt>Let this action determine when measurements should start and stop.<br>
|
| +<dl><dt><a name="PlayAction-BindMeasurementJavaScript"><strong>BindMeasurementJavaScript</strong></a>(self, tab, start_js, stop_js)</dt><dd><tt>Let this action determine when measurements should start and stop.<br>
|
| <br>
|
| A measurement can call this method to provide the action<br>
|
| with JavaScript code that starts and stops measurements. The action<br>
|
| @@ -70,23 +81,20 @@ Args:<br>
|
| start_js: JavaScript code that starts measurements.<br>
|
| stop_js: JavaScript code that stops measurements.</tt></dd></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-CanBeBound"><strong>CanBeBound</strong></a>(self)</dt><dd><tt>If this class implements BindMeasurementJavaScript, override CanBeBound<br>
|
| +<dl><dt><a name="PlayAction-CanBeBound"><strong>CanBeBound</strong></a>(self)</dt><dd><tt>If this class implements BindMeasurementJavaScript, override CanBeBound<br>
|
| to return True so that a test knows it can bind measurements.</tt></dd></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-CleanUp"><strong>CleanUp</strong></a>(self, page, tab)</dt></dl>
|
| +<dl><dt><a name="PlayAction-CleanUp"><strong>CleanUp</strong></a>(self, page, tab)</dt></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-CustomizeBrowserOptions"><strong>CustomizeBrowserOptions</strong></a>(self, options)</dt><dd><tt>Override to add action-specific options to the BrowserOptions<br>
|
| +<dl><dt><a name="PlayAction-CustomizeBrowserOptions"><strong>CustomizeBrowserOptions</strong></a>(self, options)</dt><dd><tt>Override to add action-specific options to the BrowserOptions<br>
|
| object.</tt></dd></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-RunsPreviousAction"><strong>RunsPreviousAction</strong></a>(self)</dt><dd><tt>Some actions require some initialization to be performed before the<br>
|
| +<dl><dt><a name="PlayAction-RunsPreviousAction"><strong>RunsPreviousAction</strong></a>(self)</dt><dd><tt>Some actions require some initialization to be performed before the<br>
|
| previous action. For example, wait for href change needs to record the old<br>
|
| href before the previous action changes it. Therefore, we allow actions to<br>
|
| run the previous action. An action that does this should override this to<br>
|
| return True in order to prevent the previous action from being run twice.</tt></dd></dl>
|
|
|
| -<dl><dt><a name="ClickElementAction-WillRunAction"><strong>WillRunAction</strong></a>(self, page, tab)</dt><dd><tt>Override to do action-specific setup before<br>
|
| -Test.WillRunAction is called.</tt></dd></dl>
|
| -
|
| <hr>
|
| Data descriptors inherited from <a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br>
|
| <dl><dt><strong>__dict__</strong></dt>
|
|
|