1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.page.actions.wait</title> 4</head><body bgcolor="#f0f0f8"> 5 6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 7<tr bgcolor="#7799ee"> 8<td valign=bottom> <br> 9<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>.wait</strong></big></big></font></td 10><td align=right valign=bottom 11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/page/actions/wait.py">telemetry/page/actions/wait.py</a></font></td></tr></table> 12 <p><tt># Copyright (c) 2012 The Chromium Authors. All rights reserved.<br> 13# Use of this source code is governed by a BSD-style license that can be<br> 14# found in the LICENSE file.</tt></p> 15<p> 16<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 17<tr bgcolor="#aa55cc"> 18<td colspan=3 valign=bottom> <br> 19<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 20 21<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 22<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.page.actions.page_action.html">telemetry.page.actions.page_action</a><br> 23</td><td width="25%" valign=top><a href="re.html">re</a><br> 24</td><td width="25%" valign=top><a href="time.html">time</a><br> 25</td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br> 26</td></tr></table></td></tr></table><p> 27<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 28<tr bgcolor="#ee77aa"> 29<td colspan=3 valign=bottom> <br> 30<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 31 32<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 33<td width="100%"><dl> 34<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>) 35</font></dt><dd> 36<dl> 37<dt><font face="helvetica, arial"><a href="telemetry.page.actions.wait.html#WaitAction">WaitAction</a> 38</font></dt></dl> 39</dd> 40</dl> 41 <p> 42<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 43<tr bgcolor="#ffc8d8"> 44<td colspan=3 valign=bottom> <br> 45<font color="#000000" face="helvetica, arial"><a name="WaitAction">class <strong>WaitAction</strong></a>(<a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>)</font></td></tr> 46 47<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 48<td width="100%"><dl><dt>Method resolution order:</dt> 49<dd><a href="telemetry.page.actions.wait.html#WaitAction">WaitAction</a></dd> 50<dd><a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a></dd> 51<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 52</dl> 53<hr> 54Methods defined here:<br> 55<dl><dt><a name="WaitAction-RunAction"><strong>RunAction</strong></a>(self, page, tab)</dt></dl> 56 57<dl><dt><a name="WaitAction-__init__"><strong>__init__</strong></a>(self, attributes<font color="#909090">=None</font>)</dt></dl> 58 59<hr> 60Methods inherited from <a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br> 61<dl><dt><a name="WaitAction-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> 62 <br> 63A measurement can call this method to provide the action<br> 64with JavaScript code that starts and stops measurements. The action<br> 65determines when to execute the provided JavaScript code, for more accurate<br> 66timings.<br> 67 <br> 68Args:<br> 69 tab: The tab to do everything on.<br> 70 start_js: JavaScript code that starts measurements.<br> 71 stop_js: JavaScript code that stops measurements.</tt></dd></dl> 72 73<dl><dt><a name="WaitAction-CanBeBound"><strong>CanBeBound</strong></a>(self)</dt><dd><tt>If this class implements BindMeasurementJavaScript, override CanBeBound<br> 74to return True so that a test knows it can bind measurements.</tt></dd></dl> 75 76<dl><dt><a name="WaitAction-CleanUp"><strong>CleanUp</strong></a>(self, page, tab)</dt></dl> 77 78<dl><dt><a name="WaitAction-CustomizeBrowserOptionsForPageSet"><strong>CustomizeBrowserOptionsForPageSet</strong></a>(self, options)</dt><dd><tt>Override to add action-specific options to the BrowserOptions<br> 79object. These options will be set for the whole page set.<br> 80 <br> 81If the browser is not being restarted for every page in the page set then<br> 82all browser options required for the action must be set here. This, however,<br> 83requires that they do not conflict with options require by other actions<br> 84used up by the page set.</tt></dd></dl> 85 86<dl><dt><a name="WaitAction-GetActiveRangeOnTimeline"><strong>GetActiveRangeOnTimeline</strong></a>(self, timeline)</dt></dl> 87 88<dl><dt><a name="WaitAction-RunActionAndMaybeWait"><strong>RunActionAndMaybeWait</strong></a>(self, page, tab)</dt></dl> 89 90<dl><dt><a name="WaitAction-WillRunAction"><strong>WillRunAction</strong></a>(self, page, tab)</dt><dd><tt>Override to do action-specific setup before<br> 91Test.WillRunAction is called.</tt></dd></dl> 92 93<dl><dt><a name="WaitAction-WillWaitAfterRun"><strong>WillWaitAfterRun</strong></a>(self)</dt></dl> 94 95<hr> 96Static methods inherited from <a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br> 97<dl><dt><a name="WaitAction-ResetNextTimelineMarkerId"><strong>ResetNextTimelineMarkerId</strong></a>()</dt></dl> 98 99<hr> 100Data descriptors inherited from <a href="telemetry.page.actions.page_action.html#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br> 101<dl><dt><strong>__dict__</strong></dt> 102<dd><tt>dictionary for instance variables (if defined)</tt></dd> 103</dl> 104<dl><dt><strong>__weakref__</strong></dt> 105<dd><tt>list of weak references to the object (if defined)</tt></dd> 106</dl> 107</td></tr></table></td></tr></table> 108</body></html>