telemetry.internal.backends.chrome_inspector.inspector_runtime | index telemetry/internal/backends/chrome_inspector/inspector_runtime.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.core.exceptions |  |  |

Classes
`` |  |

__builtin__.object
  InspectorRuntime

class InspectorRuntime(__builtin__.object)
`` |  | Methods defined here:

EnableAllContexts(self)
  `Allow access to iframes.
  Raises:
  exceptions.WebSocketDisconnected
  websocket.WebSocketException
  socket.error`

Evaluate(self, expr, context_id, timeout)
  `Evaluates a javascript expression and returns the result.
  |context_id| can refer to an iframe. The main page has context_id=1, the
  first iframe context_id=2, etc.
  Raises:
  exceptions.EvaluateException
  exceptions.WebSocketDisconnected
  websocket.WebSocketException
  socket.error`

Execute(self, expr, context_id, timeout)

RunInspectorCommand(self, command, timeout)
  `Runs an inspector command.
  Raises:
  exceptions.WebSocketDisconnected
  websocket.WebSocketException
  socket.error`

__init__(self, inspector_websocket)

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

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