| OLD | NEW |
| 1 | 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: package telemetry</title> | 3 <html><head><title>Python: package telemetry</title> |
| 4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
| 5 | 5 |
| 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
| 8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
| 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>teleme
try</strong></big></big></font></td | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>teleme
try</strong></big></big></font></td |
| 10 ><td align=right valign=bottom | 10 ><td align=right valign=bottom |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 Put together:<br> | 269 Put together:<br> |
| 270 <br> | 270 <br> |
| 271 def <a href="#PageMeasurement-MeasurePage">MeasurePage</a
>(self, page, tab, results):<br> | 271 def <a href="#PageMeasurement-MeasurePage">MeasurePage</a
>(self, page, tab, results):<br> |
| 272 res = tab.EvaluateJavaScript('2+2')<br> | 272 res = tab.EvaluateJavaScript('2+2')<br> |
| 273 if res != 4:<br> | 273 if res != 4:<br> |
| 274 raise Exception('Oh, wow.')<
br> | 274 raise Exception('Oh, wow.')<
br> |
| 275 results.Add('two_plus_two', 'count', res
)</tt></dd></dl> | 275 results.Add('two_plus_two', 'count', res
)</tt></dd></dl> |
| 276 | 276 |
| 277 <dl><dt><a name="PageMeasurement-PrepareResults"><strong>PrepareResults</strong>
</a>(self, options)</dt></dl> | 277 <dl><dt><a name="PageMeasurement-PrepareResults"><strong>PrepareResults</strong>
</a>(self, options)</dt></dl> |
| 278 | 278 |
| 279 <dl><dt><a name="PageMeasurement-__init__"><strong>__init__</strong></a>(self, a
ction_name_to_run<font color="#909090">=''</font>, needs_browser_restart_after_e
ach_run<font color="#909090">=False</font>, discard_first_result<font color="#90
9090">=False</font>)</dt></dl> | 279 <dl><dt><a name="PageMeasurement-__init__"><strong>__init__</strong></a>(self, a
ction_name_to_run<font color="#909090">=''</font>, needs_browser_restart_after_e
ach_run<font color="#909090">=False</font>, discard_first_result<font color="#90
9090">=False</font>, clear_cache_before_each_run<font color="#909090">=False</fo
nt>)</dt></dl> |
| 280 | 280 |
| 281 <hr> | 281 <hr> |
| 282 Data descriptors defined here:<br> | 282 Data descriptors defined here:<br> |
| 283 <dl><dt><strong>output_format_choices</strong></dt> | 283 <dl><dt><strong>output_format_choices</strong></dt> |
| 284 </dl> | 284 </dl> |
| 285 <dl><dt><strong>results_are_the_same_on_every_page</strong></dt> | 285 <dl><dt><strong>results_are_the_same_on_every_page</strong></dt> |
| 286 <dd><tt>By default, measurements are assumed to ou
tput the same values for every<br> | 286 <dd><tt>By default, measurements are assumed to ou
tput the same values for every<br> |
| 287 page. This allows incremental output, for example&
nbsp;in CSV. If, however, the<br> | 287 page. This allows incremental output, for example&
nbsp;in CSV. If, however, the<br> |
| 288 measurement discovers what values it can report&nb
sp;as it goes, and those values<br> | 288 measurement discovers what values it can report&nb
sp;as it goes, and those values<br> |
| 289 may vary from page to page, you need to&
nbsp;override this function and return<br> | 289 may vary from page to page, you need to&
nbsp;override this function and return<br> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 <hr> | 332 <hr> |
| 333 Data descriptors inherited from <a href="telemetry.page.page_test.html#PageTest"
>telemetry.page.page_test.PageTest</a>:<br> | 333 Data descriptors inherited from <a href="telemetry.page.page_test.html#PageTest"
>telemetry.page.page_test.PageTest</a>:<br> |
| 334 <dl><dt><strong>__dict__</strong></dt> | 334 <dl><dt><strong>__dict__</strong></dt> |
| 335 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | 335 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
| 336 </dl> | 336 </dl> |
| 337 <dl><dt><strong>__weakref__</strong></dt> | 337 <dl><dt><strong>__weakref__</strong></dt> |
| 338 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | 338 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 339 </dl> | 339 </dl> |
| 340 <dl><dt><strong>action_name_to_run</strong></dt> | 340 <dl><dt><strong>action_name_to_run</strong></dt> |
| 341 </dl> | 341 </dl> |
| 342 <dl><dt><strong>clear_cache_before_each_run</strong></dt> |
| 343 <dd><tt>When set to True, the browser's disk
and memory cache will be cleared<br> |
| 344 before each run.</tt></dd> |
| 345 </dl> |
| 342 <dl><dt><strong>discard_first_result</strong></dt> | 346 <dl><dt><strong>discard_first_result</strong></dt> |
| 343 <dd><tt>When set to True, the first run of&nb
sp;the test is discarded. This is<br> | 347 <dd><tt>When set to True, the first run of&nb
sp;the test is discarded. This is<br> |
| 344 useful for cases where it's desirable to have
some test resource cached so<br> | 348 useful for cases where it's desirable to have
some test resource cached so<br> |
| 345 the first run of the test can warm thing
s up.</tt></dd> | 349 the first run of the test can warm thing
s up.</tt></dd> |
| 346 </dl> | 350 </dl> |
| 347 </td></tr></table> <p> | 351 </td></tr></table> <p> |
| 348 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 352 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 349 <tr bgcolor="#ffc8d8"> | 353 <tr bgcolor="#ffc8d8"> |
| 350 <td colspan=3 valign=bottom> <br> | 354 <td colspan=3 valign=bottom> <br> |
| 351 <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> | 355 <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> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 371 <dl><dt><a name="Tab-Activate"><strong>Activate</strong></a>(self)</dt><dd><tt>B
rings this tab to the foreground asynchronously.<b
r> | 375 <dl><dt><a name="Tab-Activate"><strong>Activate</strong></a>(self)</dt><dd><tt>B
rings this tab to the foreground asynchronously.<b
r> |
| 372 <br> | 376 <br> |
| 373 Not all browsers or browser versions support
this method.<br> | 377 Not all browsers or browser versions support
this method.<br> |
| 374 Be sure to check browser.supports_tab_control.<br> | 378 Be sure to check browser.supports_tab_control.<br> |
| 375 <br> | 379 <br> |
| 376 Please note: this is asynchronous. There is a
delay between this call<br> | 380 Please note: this is asynchronous. There is a
delay between this call<br> |
| 377 and the page's documentVisibilityState becoming 'visibl
e', and yet more<br> | 381 and the page's documentVisibilityState becoming 'visibl
e', and yet more<br> |
| 378 delay until the actual tab is visible to 
;the user. None of these delays<br> | 382 delay until the actual tab is visible to 
;the user. None of these delays<br> |
| 379 are included in this call.</tt></dd></dl> | 383 are included in this call.</tt></dd></dl> |
| 380 | 384 |
| 385 <dl><dt><a name="Tab-ClearCache"><strong>ClearCache</strong></a>(self)</dt><dd><
tt>Clears the browser's HTTP disk cache and t
he tab's HTTP memory cache.</tt></dd></dl> |
| 386 |
| 381 <dl><dt><a name="Tab-CollectGarbage"><strong>CollectGarbage</strong></a>(self)</
dt></dl> | 387 <dl><dt><a name="Tab-CollectGarbage"><strong>CollectGarbage</strong></a>(self)</
dt></dl> |
| 382 | 388 |
| 383 <dl><dt><a name="Tab-GetCookieByName"><strong>GetCookieByName</strong></a>(self,
name, timeout<font color="#909090">=60</font>)</dt><dd><tt>Returns the&nbs
p;value of the cookie by the given |name|.</t
t></dd></dl> | 389 <dl><dt><a name="Tab-GetCookieByName"><strong>GetCookieByName</strong></a>(self,
name, timeout<font color="#909090">=60</font>)</dt><dd><tt>Returns the&nbs
p;value of the cookie by the given |name|.</t
t></dd></dl> |
| 384 | 390 |
| 385 <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 to url.<br> | 391 <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 to url.<br> |
| 386 <br> | 392 <br> |
| 387 If |script_to_evaluate_on_commit| is given, the script&
nbsp;source string will be<br> | 393 If |script_to_evaluate_on_commit| is given, the script&
nbsp;source string will be<br> |
| 388 evaluated when the navigation is committed. This&n
bsp;is after the context of<br> | 394 evaluated when the navigation is committed. This&n
bsp;is after the context of<br> |
| 389 the page exists, but before any script on&nbs
p;the page itself has executed.</tt></dd></dl> | 395 the page exists, but before any script on&nbs
p;the page itself has executed.</tt></dd></dl> |
| 390 | 396 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 <td width="100%"><dl><dt><a name="-RunPage"><strong>RunPage</strong></a> = Run(t
est, page_set, options)</dt><dd><tt>Runs a given test agains
t a given page_set with the given options.</t
t></dd></dl> | 480 <td width="100%"><dl><dt><a name="-RunPage"><strong>RunPage</strong></a> = Run(t
est, page_set, options)</dt><dd><tt>Runs a given test agains
t a given page_set with the given options.</t
t></dd></dl> |
| 475 </td></tr></table><p> | 481 </td></tr></table><p> |
| 476 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 482 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 477 <tr bgcolor="#55aa55"> | 483 <tr bgcolor="#55aa55"> |
| 478 <td colspan=3 valign=bottom> <br> | 484 <td colspan=3 valign=bottom> <br> |
| 479 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></
font></td></tr> | 485 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></
font></td></tr> |
| 480 | 486 |
| 481 <tr><td bgcolor="#55aa55"><tt> </tt></td><td>
</td> | 487 <tr><td bgcolor="#55aa55"><tt> </tt></td><td>
</td> |
| 482 <td width="100%"><strong>__all__</strong> = ['Browser', 'BrowserOptions', 'PageM
easurement', 'RunPage', 'Tab']</td></tr></table> | 488 <td width="100%"><strong>__all__</strong> = ['Browser', 'BrowserOptions', 'PageM
easurement', 'RunPage', 'Tab']</td></tr></table> |
| 483 </body></html> | 489 </body></html> |
| OLD | NEW |