Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: tools/telemetry/docs/telemetry.core.tab.html

Issue 17150002: [telemetry] Initial (autogenerated) documentation plus support scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update with nits Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.tab</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>&nbsp;<br>
9 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a hre f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry .core.html"><font color="#ffffff">core</font></a>.tab</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= "file:/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/core/tab.py">/User s/nduca/Local/chrome/src/tools/telemetry/telemetry/core/tab.py</a></font></td></ tr></table>
12 <p><tt>#&nbsp;Copyright&nbsp;(c)&nbsp;2012&nbsp;The&nbsp;Chromium&nbsp;Autho rs.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
13 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by &nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
14 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;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>&nbsp;<br>
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big ></font></td></tr>
20
21 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t op><a href="telemetry.core.web_contents.html">telemetry.core.web_contents</a><br >
23 </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width=" 25%" valign=top></td></tr></table></td></tr></table><p>
24 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
25 <tr bgcolor="#ee77aa">
26 <td colspan=3 valign=bottom>&nbsp;<br>
27 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big ></font></td></tr>
28
29 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
30 <td width="100%"><dl>
31 <dt><font face="helvetica, arial"><a href="telemetry.core.web_contents.html#WebC ontents">telemetry.core.web_contents.WebContents</a>(<a href="__builtin__.html#o bject">__builtin__.object</a>)
32 </font></dt><dd>
33 <dl>
34 <dt><font face="helvetica, arial"><a href="telemetry.core.tab.html#Tab">Tab</a>
35 </font></dt></dl>
36 </dd>
37 </dl>
38 <p>
39 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
40 <tr bgcolor="#ffc8d8">
41 <td colspan=3 valign=bottom>&nbsp;<br>
42 <font color="#000000" face="helvetica, arial"><a name="Tab">class <strong>Tab</s trong></a>(<a href="telemetry.core.web_contents.html#WebContents">telemetry.core .web_contents.WebContents</a>)</font></td></tr>
43
44 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
45 <td colspan=2><tt>Represents&nbsp;a&nbsp;tab&nbsp;in&nbsp;the&nbsp;browser<br>
46 &nbsp;<br>
47 The&nbsp;important&nbsp;parts&nbsp;of&nbsp;the&nbsp;<a href="#Tab">Tab</a>&nbsp; object&nbsp;are&nbsp;in&nbsp;the&nbsp;runtime&nbsp;and&nbsp;page&nbsp;objects.<b r>
48 E.g.:<br>
49 &nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Navigates&nbsp;the&nbsp;tab&nbsp;to&nbsp;a&nbsp;g iven&nbsp;url.<br>
50 &nbsp;&nbsp;&nbsp;&nbsp;tab.<a href="#Tab-Navigate">Navigate</a>('<a href="http: //www.google.com/">http://www.google.com/</a>')<br>
51 &nbsp;<br>
52 &nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Evaluates&nbsp;1+1&nbsp;in&nbsp;the&nbsp;tab's&nb sp;JavaScript&nbsp;context.<br>
53 &nbsp;&nbsp;&nbsp;&nbsp;tab.Evaluate('1+1')<br>&nbsp;</tt></td></tr>
54 <tr><td>&nbsp;</td>
55 <td width="100%"><dl><dt>Method resolution order:</dt>
56 <dd><a href="telemetry.core.tab.html#Tab">Tab</a></dd>
57 <dd><a href="telemetry.core.web_contents.html#WebContents">telemetry.core.web_co ntents.WebContents</a></dd>
58 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
59 </dl>
60 <hr>
61 Methods defined here:<br>
62 <dl><dt><a name="Tab-Activate"><strong>Activate</strong></a>(self)</dt><dd><tt>B rings&nbsp;this&nbsp;tab&nbsp;to&nbsp;the&nbsp;foreground&nbsp;asynchronously.<b r>
63 &nbsp;<br>
64 Not&nbsp;all&nbsp;browsers&nbsp;or&nbsp;browser&nbsp;versions&nbsp;support&nbsp; this&nbsp;method.<br>
65 Be&nbsp;sure&nbsp;to&nbsp;check&nbsp;browser.supports_tab_control.<br>
66 &nbsp;<br>
67 Please&nbsp;note:&nbsp;this&nbsp;is&nbsp;asynchronous.&nbsp;There&nbsp;is&nbsp;a &nbsp;delay&nbsp;between&nbsp;this&nbsp;call<br>
68 and&nbsp;the&nbsp;page's&nbsp;documentVisibilityState&nbsp;becoming&nbsp;'visibl e',&nbsp;and&nbsp;yet&nbsp;more<br>
69 delay&nbsp;until&nbsp;the&nbsp;actual&nbsp;tab&nbsp;is&nbsp;visible&nbsp;to&nbsp ;the&nbsp;user.&nbsp;None&nbsp;of&nbsp;these&nbsp;delays<br>
70 are&nbsp;included&nbsp;in&nbsp;this&nbsp;call.</tt></dd></dl>
71
72 <dl><dt><a name="Tab-CollectGarbage"><strong>CollectGarbage</strong></a>(self)</ dt></dl>
73
74 <dl><dt><a name="Tab-GetCookieByName"><strong>GetCookieByName</strong></a>(self, name, timeout<font color="#909090">=60</font>)</dt><dd><tt>Returns&nbsp;the&nbs p;value&nbsp;of&nbsp;the&nbsp;cookie&nbsp;by&nbsp;the&nbsp;given&nbsp;|name|.</t t></dd></dl>
75
76 <dl><dt><a name="Tab-Navigate"><strong>Navigate</strong></a>(self, url, script_t o_evaluate_on_commit<font color="#909090">=None</font>, timeout<font color="#909 090">=60</font>)</dt><dd><tt>Navigates&nbsp;to&nbsp;url.<br>
77 &nbsp;<br>
78 If&nbsp;|script_to_evaluate_on_commit|&nbsp;is&nbsp;given,&nbsp;the&nbsp;script& nbsp;source&nbsp;string&nbsp;will&nbsp;be<br>
79 evaluated&nbsp;when&nbsp;the&nbsp;navigation&nbsp;is&nbsp;committed.&nbsp;This&n bsp;is&nbsp;after&nbsp;the&nbsp;context&nbsp;of<br>
80 the&nbsp;page&nbsp;exists,&nbsp;but&nbsp;before&nbsp;any&nbsp;script&nbsp;on&nbs p;the&nbsp;page&nbsp;itself&nbsp;has&nbsp;executed.</tt></dd></dl>
81
82 <dl><dt><a name="Tab-PerformActionAndWaitForNavigate"><strong>PerformActionAndWa itForNavigate</strong></a>(self, action_function, timeout<font color="#909090">= 60</font>)</dt><dd><tt>Executes&nbsp;action_function,&nbsp;and&nbsp;waits&nbsp;f or&nbsp;the&nbsp;navigation&nbsp;to&nbsp;complete.<br>
83 &nbsp;<br>
84 action_function&nbsp;must&nbsp;be&nbsp;a&nbsp;Python&nbsp;function&nbsp;that&nbs p;results&nbsp;in&nbsp;a&nbsp;navigation.<br>
85 This&nbsp;function&nbsp;returns&nbsp;when&nbsp;the&nbsp;navigation&nbsp;is&nbsp; complete&nbsp;or&nbsp;when<br>
86 the&nbsp;timeout&nbsp;has&nbsp;been&nbsp;exceeded.</tt></dd></dl>
87
88 <dl><dt><a name="Tab-Screenshot"><strong>Screenshot</strong></a>(self, timeout<f ont color="#909090">=60</font>)</dt><dd><tt>Capture&nbsp;a&nbsp;screenshot&nbsp; of&nbsp;the&nbsp;window&nbsp;for&nbsp;rendering&nbsp;validation</tt></dd></dl>
89
90 <dl><dt><a name="Tab-__del__"><strong>__del__</strong></a>(self)</dt></dl>
91
92 <dl><dt><a name="Tab-__init__"><strong>__init__</strong></a>(self, inspector_bac kend)</dt></dl>
93
94 <hr>
95 Data descriptors defined here:<br>
96 <dl><dt><strong>browser</strong></dt>
97 <dd><tt>The&nbsp;browser&nbsp;in&nbsp;which&nbsp;this&nbsp;tab&nbsp;resides.</tt ></dd>
98 </dl>
99 <dl><dt><strong>dom_stats</strong></dt>
100 <dd><tt>A&nbsp;dictionary&nbsp;populated&nbsp;with&nbsp;measured&nbsp;DOM&nbsp;s tatistics.<br>
101 &nbsp;<br>
102 Currently&nbsp;this&nbsp;dictionary&nbsp;contains:<br>
103 {<br>
104 &nbsp;&nbsp;'document_count':&nbsp;integer,<br>
105 &nbsp;&nbsp;'node_count':&nbsp;integer,<br>
106 &nbsp;&nbsp;'event_listener_count':&nbsp;integer<br>
107 }</tt></dd>
108 </dl>
109 <dl><dt><strong>screenshot_supported</strong></dt>
110 <dd><tt>True&nbsp;if&nbsp;the&nbsp;browser&nbsp;instance&nbsp;is&nbsp;capable&nb sp;of&nbsp;capturing&nbsp;screenshots</tt></dd>
111 </dl>
112 <dl><dt><strong>url</strong></dt>
113 </dl>
114 <hr>
115 Methods inherited from <a href="telemetry.core.web_contents.html#WebContents">te lemetry.core.web_contents.WebContents</a>:<br>
116 <dl><dt><a name="Tab-Close"><strong>Close</strong></a>(self)</dt><dd><tt>Closes& nbsp;this&nbsp;page.<br>
117 &nbsp;<br>
118 Not&nbsp;all&nbsp;browsers&nbsp;or&nbsp;browser&nbsp;versions&nbsp;support&nbsp; this&nbsp;method.<br>
119 Be&nbsp;sure&nbsp;to&nbsp;check&nbsp;browser.supports_tab_control.</tt></dd></dl >
120
121 <dl><dt><a name="Tab-Disconnect"><strong>Disconnect</strong></a>(self)</dt></dl>
122
123 <dl><dt><a name="Tab-EvaluateJavaScript"><strong>EvaluateJavaScript</strong></a> (self, expr, timeout<font color="#909090">=60</font>)</dt><dd><tt>Evalutes&nbsp; expr&nbsp;in&nbsp;JavaScript&nbsp;and&nbsp;returns&nbsp;the&nbsp;JSONized&nbsp;r esult.<br>
124 &nbsp;<br>
125 Consider&nbsp;using&nbsp;ExecuteJavaScript&nbsp;for&nbsp;cases&nbsp;where&nbsp;t he&nbsp;result&nbsp;of&nbsp;the<br>
126 expression&nbsp;is&nbsp;not&nbsp;needed.<br>
127 &nbsp;<br>
128 If&nbsp;evaluation&nbsp;throws&nbsp;in&nbsp;JavaScript,&nbsp;a&nbsp;Python&nbsp; EvaluateException&nbsp;will<br>
129 be&nbsp;raised.<br>
130 &nbsp;<br>
131 If&nbsp;the&nbsp;result&nbsp;of&nbsp;the&nbsp;evaluation&nbsp;cannot&nbsp;be&nbs p;JSONized,&nbsp;then&nbsp;an<br>
132 EvaluationException&nbsp;will&nbsp;be&nbsp;raised.</tt></dd></dl>
133
134 <dl><dt><a name="Tab-ExecuteJavaScript"><strong>ExecuteJavaScript</strong></a>(s elf, expr, timeout<font color="#909090">=60</font>)</dt><dd><tt>Executes&nbsp;ex pr&nbsp;in&nbsp;JavaScript.&nbsp;Does&nbsp;not&nbsp;return&nbsp;the&nbsp;result. <br>
135 &nbsp;<br>
136 If&nbsp;the&nbsp;expression&nbsp;failed&nbsp;to&nbsp;evaluate,&nbsp;EvaluateExce ption&nbsp;will&nbsp;be&nbsp;raised.</tt></dd></dl>
137
138 <dl><dt><a name="Tab-StartTimelineRecording"><strong>StartTimelineRecording</str ong></a>(self)</dt></dl>
139
140 <dl><dt><a name="Tab-StopTimelineRecording"><strong>StopTimelineRecording</stron g></a>(self)</dt></dl>
141
142 <dl><dt><a name="Tab-WaitForDocumentReadyStateToBeComplete"><strong>WaitForDocum entReadyStateToBeComplete</strong></a>(self, timeout<font color="#909090">=60</f ont>)</dt></dl>
143
144 <dl><dt><a name="Tab-WaitForDocumentReadyStateToBeInteractiveOrBetter"><strong>W aitForDocumentReadyStateToBeInteractiveOrBetter</strong></a>(self, timeout<font color="#909090">=60</font>)</dt></dl>
145
146 <hr>
147 Data descriptors inherited from <a href="telemetry.core.web_contents.html#WebCon tents">telemetry.core.web_contents.WebContents</a>:<br>
148 <dl><dt><strong>__dict__</strong></dt>
149 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)< /tt></dd>
150 </dl>
151 <dl><dt><strong>__weakref__</strong></dt>
152 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp ;(if&nbsp;defined)</tt></dd>
153 </dl>
154 <dl><dt><strong>message_output_stream</strong></dt>
155 </dl>
156 <dl><dt><strong>timeline_model</strong></dt>
157 </dl>
158 </td></tr></table></td></tr></table><p>
159 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
160 <tr bgcolor="#55aa55">
161 <td colspan=3 valign=bottom>&nbsp;<br>
162 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></ font></td></tr>
163
164 <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td> &nbsp;</td>
165 <td width="100%"><strong>DEFAULT_TAB_TIMEOUT</strong> = 60</td></tr></table>
166 </body></html>
OLDNEW
« no previous file with comments | « tools/telemetry/docs/telemetry.core.profile_types.html ('k') | tools/telemetry/docs/telemetry.core.tab_list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698