2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.chrome.inspector_backend</title>
4 </head><body bgcolor="#f0f0f8">
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
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.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.chrome.html"><font color="#ffffff">chrome</font></a>.inspector_backend</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/core/chrome/inspector_backend.py">telemetry/core/chrome/inspector_backend.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>
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>
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.core.exceptions.html">telemetry.core.exceptions</a><br>
23 <a href="telemetry.core.chrome.inspector_console.html">telemetry.core.chrome.inspector_console</a><br>
24 <a href="telemetry.core.chrome.inspector_memory.html">telemetry.core.chrome.inspector_memory</a><br>
25 <a href="telemetry.core.chrome.inspector_network.html">telemetry.core.chrome.inspector_network</a><br>
26 </td><td width="25%" valign=top><a href="telemetry.core.chrome.inspector_page.html">telemetry.core.chrome.inspector_page</a><br>
27 <a href="telemetry.core.chrome.inspector_runtime.html">telemetry.core.chrome.inspector_runtime</a><br>
28 <a href="telemetry.core.chrome.inspector_timeline.html">telemetry.core.chrome.inspector_timeline</a><br>
29 <a href="json.html">json</a><br>
30 </td><td width="25%" valign=top><a href="logging.html">logging</a><br>
31 <a href="telemetry.core.chrome.png_bitmap.html">telemetry.core.chrome.png_bitmap</a><br>
32 <a href="socket.html">socket</a><br>
33 <a href="sys.html">sys</a><br>
34 </td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br>
35 <a href="telemetry.core.chrome.websocket.html">telemetry.core.chrome.websocket</a><br>
36 </td></tr></table></td></tr></table><p>
37 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
38 <tr bgcolor="#ee77aa">
39 <td colspan=3 valign=bottom> <br>
40 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
42 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
44 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
47 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.inspector_backend.html#InspectorBackend">InspectorBackend</a>
50 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
53 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.inspector_backend.html#InspectorException">InspectorException</a>
58 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
59 <tr bgcolor="#ffc8d8">
60 <td colspan=3 valign=bottom> <br>
61 <font color="#000000" face="helvetica, arial"><a name="InspectorBackend">class <strong>InspectorBackend</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
63 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
64 <td width="100%">Methods defined here:<br>
65 <dl><dt><a name="InspectorBackend-Activate"><strong>Activate</strong></a>(self)</dt></dl>
67 <dl><dt><a name="InspectorBackend-ClearCache"><strong>ClearCache</strong></a>(self)</dt></dl>
69 <dl><dt><a name="InspectorBackend-Close"><strong>Close</strong></a>(self)</dt></dl>
71 <dl><dt><a name="InspectorBackend-CollectGarbage"><strong>CollectGarbage</strong></a>(self)</dt></dl>
73 <dl><dt><a name="InspectorBackend-Disconnect"><strong>Disconnect</strong></a>(self)</dt></dl>
75 <dl><dt><a name="InspectorBackend-DispatchNotifications"><strong>DispatchNotifications</strong></a>(self, timeout<font color="#909090">=10</font>)</dt></dl>
77 <dl><dt><a name="InspectorBackend-EvaluateJavaScript"><strong>EvaluateJavaScript</strong></a>(self, expr, timeout)</dt></dl>
79 <dl><dt><a name="InspectorBackend-ExecuteJavaScript"><strong>ExecuteJavaScript</strong></a>(self, expr, timeout)</dt></dl>
81 <dl><dt><a name="InspectorBackend-GetCookieByName"><strong>GetCookieByName</strong></a>(self, name, timeout)</dt></dl>
83 <dl><dt><a name="InspectorBackend-GetDOMStats"><strong>GetDOMStats</strong></a>(self, timeout)</dt></dl>
85 <dl><dt><a name="InspectorBackend-Navigate"><strong>Navigate</strong></a>(self, url, script_to_evaluate_on_commit, timeout)</dt></dl>
87 <dl><dt><a name="InspectorBackend-PerformActionAndWaitForNavigate"><strong>PerformActionAndWaitForNavigate</strong></a>(self, action_function, timeout)</dt></dl>
89 <dl><dt><a name="InspectorBackend-RegisterDomain"><strong>RegisterDomain</strong></a>(self, domain_name, notification_handler, will_close_handler)</dt><dd><tt>Registers a given domain for handling notification methods.<br>
91 For example, given inspector_backend:<br>
92 def OnConsoleNotification(msg):<br>
93 if msg['method'] == 'Console.messageAdded':<br>
94 print msg['params']['message']<br>
95 return<br>
96 def OnConsoleClose(self):<br>
97 pass<br>
98 inspector_backend.<a href="#InspectorBackend-RegisterDomain">RegisterDomain</a>('Console',<br>
99 OnConsoleNotification, OnConsoleClose)</tt></dd></dl>
101 <dl><dt><a name="InspectorBackend-Screenshot"><strong>Screenshot</strong></a>(self, timeout)</dt></dl>
103 <dl><dt><a name="InspectorBackend-SendAndIgnoreResponse"><strong>SendAndIgnoreResponse</strong></a>(self, req)</dt></dl>
105 <dl><dt><a name="InspectorBackend-StartTimelineRecording"><strong>StartTimelineRecording</strong></a>(self)</dt></dl>
107 <dl><dt><a name="InspectorBackend-StopTimelineRecording"><strong>StopTimelineRecording</strong></a>(self)</dt></dl>
109 <dl><dt><a name="InspectorBackend-SyncRequest"><strong>SyncRequest</strong></a>(self, req, timeout<font color="#909090">=10</font>)</dt></dl>
111 <dl><dt><a name="InspectorBackend-UnregisterDomain"><strong>UnregisterDomain</strong></a>(self, domain_name)</dt><dd><tt>Unregisters a previously registered domain.</tt></dd></dl>
113 <dl><dt><a name="InspectorBackend-WaitForDocumentReadyStateToBeComplete"><strong>WaitForDocumentReadyStateToBeComplete</strong></a>(self, timeout)</dt></dl>
115 <dl><dt><a name="InspectorBackend-WaitForDocumentReadyStateToBeInteractiveOrBetter"><strong>WaitForDocumentReadyStateToBeInteractiveOrBetter</strong></a>(self, timeout)</dt></dl>
117 <dl><dt><a name="InspectorBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl>
119 <dl><dt><a name="InspectorBackend-__init__"><strong>__init__</strong></a>(self, browser, browser_backend, debugger_url)</dt></dl>
122 Data descriptors defined here:<br>
123 <dl><dt><strong>__dict__</strong></dt>
124 <dd><tt>dictionary for instance variables (if defined)</tt></dd>
126 <dl><dt><strong>__weakref__</strong></dt>
127 <dd><tt>list of weak references to the object (if defined)</tt></dd>
129 <dl><dt><strong>browser</strong></dt>
131 <dl><dt><strong>message_output_stream</strong></dt>
133 <dl><dt><strong>screenshot_supported</strong></dt>
135 <dl><dt><strong>timeline_model</strong></dt>
137 <dl><dt><strong>url</strong></dt>
139 </td></tr></table> <p>
140 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
141 <tr bgcolor="#ffc8d8">
142 <td colspan=3 valign=bottom> <br>
143 <font color="#000000" face="helvetica, arial"><a name="InspectorException">class <strong>InspectorException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
145 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
146 <td width="100%"><dl><dt>Method resolution order:</dt>
147 <dd><a href="telemetry.core.chrome.inspector_backend.html#InspectorException">InspectorException</a></dd>
148 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
149 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
150 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
153 Data descriptors defined here:<br>
154 <dl><dt><strong>__weakref__</strong></dt>
155 <dd><tt>list of weak references to the object (if defined)</tt></dd>
158 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
159 <dl><dt><a name="InspectorException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
162 Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
163 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#InspectorException-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
166 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
167 <dl><dt><a name="InspectorException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
169 <dl><dt><a name="InspectorException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
171 <dl><dt><a name="InspectorException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
173 <dl><dt><a name="InspectorException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
175 Use of negative indices is not supported.</tt></dd></dl>
177 <dl><dt><a name="InspectorException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
179 <dl><dt><a name="InspectorException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
181 <dl><dt><a name="InspectorException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
183 <dl><dt><a name="InspectorException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
185 <dl><dt><a name="InspectorException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
187 <dl><dt><a name="InspectorException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
190 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
191 <dl><dt><strong>__dict__</strong></dt>
193 <dl><dt><strong>args</strong></dt>
195 <dl><dt><strong>message</strong></dt>
197 </td></tr></table></td></tr></table>