telemetry.internal.backends.chrome_inspector.inspector_backend | index telemetry/internal/backends/chrome_inspector/inspector_backend.py

`# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |

telemetry.decorators telemetry.internal.backends.chrome_inspector.devtools_http telemetry.core.exceptions functools telemetry.internal.backends.chrome_inspector.inspector_console
telemetry.internal.backends.chrome_inspector.inspector_memory
telemetry.internal.backends.chrome_inspector.inspector_network
telemetry.internal.backends.chrome_inspector.inspector_page
telemetry.internal.backends.chrome_inspector.inspector_runtime
telemetry.internal.backends.chrome_inspector.inspector_websocket
logging
os
socket
sys
telemetry.timeline.model
telemetry.timeline.trace_data
telemetry.internal.backends.chrome_inspector.websocket

Classes
`` |  |

__builtin__.object
  InspectorBackend

class InspectorBackend(__builtin__.object)
`` | `Class for communicating with a devtools client. The owner of an instance of this class is responsible for calling Disconnect() before disposing of the instance.`
| Methods defined here:

ClearCache(inspector_backend, *args, **kwargs)

CollectGarbage(inspector_backend, *args, **kwargs)

Disconnect(self)
  `Disconnects the inspector websocket.
  This method intentionally leaves the self._websocket object around, so that
  future calls it to it will fail with a relevant error.`

EnableAllContexts(inspector_backend, *args, **kwargs)
  `Allows access to iframes.
  Raises:
  exceptions.WebSocketDisconnected
  exceptions.TimeoutException
  exceptions.DevtoolsTargetCrashException`

EvaluateJavaScript(inspector_backend, *args, **kwargs)
  `Evaluates a javascript expression and returns the result.
  Raises:
  exceptions.EvaluateException
  exceptions.WebSocketDisconnected
  exceptions.TimeoutException
  exceptions.DevtoolsTargetCrashException`

ExecuteJavaScript(inspector_backend, *args, **kwargs)
  `Executes a javascript expression without returning the result.
  Raises:
  exceptions.EvaluateException
  exceptions.WebSocketDisconnected
  exceptions.TimeoutException
  exceptions.DevtoolsTargetCrashException`

GetCookieByName(inspector_backend, *args, **kwargs)

GetDOMStats(inspector_backend, *args, **kwargs)
  `Gets memory stats from the DOM.
  Raises:
  inspector_memory.InspectorMemoryException
  exceptions.TimeoutException
  exceptions.DevtoolsTargetCrashException`

GetWebviewInspectorBackends(self)
  `Returns a list of InspectorBackend instances associated with webviews.
  Raises:
  devtools_http.DevToolsClientConnectionError`

IsInspectable(self)
  `Whether the tab is inspectable, as reported by devtools.`

Navigate(inspector_backend, *args, **kwargs)

Screenshot(inspector_backend, *args, **kwargs)

StartTimelineRecording(inspector_backend, *args, **kwargs)

StopTimelineRecording(inspector_backend, *args, **kwargs)

SynthesizeScrollGesture(inspector_backend, *args, **kwargs)
  `Runs an inspector command that causes a repeatable browser driven scroll.
  Args:
  x: X coordinate of the start of the gesture in CSS pixels.
  y: Y coordinate of the start of the gesture in CSS pixels.
  xDistance: Distance to scroll along the X axis (positive to scroll left).
  yDistance: Distance to scroll along the Y axis (positive to scroll up).
  xOverscroll: Number of additional pixels to scroll back along the X axis.
  xOverscroll: Number of additional pixels to scroll back along the Y axis.
  preventFling: Prevents a fling gesture.
  speed: Swipe speed in pixels per second.
  gestureSourceType: Which type of input events to be generated.
  repeatCount: Number of additional repeats beyond the first scroll.
  repeatDelayMs: Number of milliseconds delay between each repeat.
  interactionMarkerName: The name of the interaction markers to generate.
  Raises:
  exceptions.TimeoutException
  exceptions.DevtoolsTargetCrashException`

WaitForNavigate(inspector_backend, *args, **kwargs)

__del__(self)

__init__(self, app, devtools_client, context, timeout=60)

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

app

debugger_url

id

message_output_stream

screenshot_supported

timeline_model

url
  `Returns the URL of the tab, as reported by devtools.
  Raises:
  devtools_http.DevToolsClientConnectionError`