| OLD | NEW |
| (Empty) | |
| 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: module telemetry.page.actions.click_element</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 hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.page.html"><font color="#ffffff">page</font></a>.<a href="telemetry.page.action
s.html"><font color="#ffffff">actions</font></a>.click_element</strong></big></b
ig></font></td |
| 10 ><td align=right valign=bottom |
| 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"file:/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/page/actions/click
_element.py">/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/page/action
s/click_element.py</a></font></td></tr></table> |
| 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. 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=t
op><a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> |
| 23 </td><td width="25%" valign=top><a href="telemetry.page.actions.page_action.html
">telemetry.page.actions.page_action</a><br> |
| 24 </td><td width="25%" valign=top><a href="telemetry.page.page.html">telemetry.pag
e.page</a><br> |
| 25 </td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.cor
e.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.ht
ml#PageAction">telemetry.page.actions.page_action.PageAction</a>(<a href="__buil
tin__.html#object">__builtin__.object</a>) |
| 35 </font></dt><dd> |
| 36 <dl> |
| 37 <dt><font face="helvetica, arial"><a href="telemetry.page.actions.click_element.
html#ClickElementAction">ClickElementAction</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="ClickElementAction">class
<strong>ClickElementAction</strong></a>(<a href="telemetry.page.actions.page_ac
tion.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.click_element.html#ClickElementAction">Click
ElementAction</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> |
| 54 Methods defined here:<br> |
| 55 <dl><dt><a name="ClickElementAction-RunAction"><strong>RunAction</strong></a>(se
lf, page, tab, previous_action)</dt></dl> |
| 56 |
| 57 <dl><dt><a name="ClickElementAction-__init__"><strong>__init__</strong></a>(self
, attributes<font color="#909090">=None</font>)</dt></dl> |
| 58 |
| 59 <hr> |
| 60 Methods inherited from <a href="telemetry.page.actions.page_action.html#PageActi
on">telemetry.page.actions.page_action.PageAction</a>:<br> |
| 61 <dl><dt><a name="ClickElementAction-BindMeasurementJavaScript"><strong>BindMeasu
rementJavaScript</strong></a>(self, tab, start_js, stop_js)</dt><dd><tt>Let 
;this action determine when measurements should st
art and stop.<br> |
| 62 <br> |
| 63 A measurement can call this method to provide
the action<br> |
| 64 with JavaScript code that starts and stops me
asurements. The action<br> |
| 65 determines when to execute the provided JavaScript
code, for more accurate<br> |
| 66 timings.<br> |
| 67 <br> |
| 68 Args:<br> |
| 69 tab: The tab to do everything on.<br> |
| 70 start_js: JavaScript code that starts measu
rements.<br> |
| 71 stop_js: JavaScript code that stops measure
ments.</tt></dd></dl> |
| 72 |
| 73 <dl><dt><a name="ClickElementAction-CanBeBound"><strong>CanBeBound</strong></a>(
self)</dt><dd><tt>If this class implements BindMeasurementJa
vaScript, override CanBeBound<br> |
| 74 to return True so that a test knows it&n
bsp;can bind measurements.</tt></dd></dl> |
| 75 |
| 76 <dl><dt><a name="ClickElementAction-CleanUp"><strong>CleanUp</strong></a>(self,
page, tab)</dt></dl> |
| 77 |
| 78 <dl><dt><a name="ClickElementAction-CustomizeBrowserOptions"><strong>CustomizeBr
owserOptions</strong></a>(self, options)</dt><dd><tt>Override to add&n
bsp;action-specific options to the BrowserOptions<br> |
| 79 object.</tt></dd></dl> |
| 80 |
| 81 <dl><dt><a name="ClickElementAction-RunsPreviousAction"><strong>RunsPreviousActi
on</strong></a>(self)</dt><dd><tt>Some actions require some
initialization to be performed before the<br> |
| 82 previous action. For example, wait for href c
hange needs to record the old<br> |
| 83 href before the previous action changes it. T
herefore, we allow actions to<br> |
| 84 run the previous action. An action that does&
nbsp;this should override this to<br> |
| 85 return True in order to prevent the previous&
nbsp;action from being run twice.</tt></dd></dl> |
| 86 |
| 87 <dl><dt><a name="ClickElementAction-WillRunAction"><strong>WillRunAction</strong
></a>(self, page, tab)</dt><dd><tt>Override to do action-specific
setup before<br> |
| 88 Test.WillRunAction is called.</tt></dd></dl> |
| 89 |
| 90 <hr> |
| 91 Data descriptors inherited from <a href="telemetry.page.actions.page_action.html
#PageAction">telemetry.page.actions.page_action.PageAction</a>:<br> |
| 92 <dl><dt><strong>__dict__</strong></dt> |
| 93 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
| 94 </dl> |
| 95 <dl><dt><strong>__weakref__</strong></dt> |
| 96 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 97 </dl> |
| 98 </td></tr></table></td></tr></table> |
| 99 </body></html> |
| OLD | NEW |