Python: module telemetry.internal.backends.chrome.tab_list_backend

telemetry.internal.backends.chrome.tab_list_backend | index telemetry/internal/backends/chrome/tab_list_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.core.exceptions telemetry.internal.backends.chrome_inspector.inspector_backend_list | json telemetry.internal.browser.tab | telemetry.core.util |

Classes
`` |  | telemetry.core.exceptions.Error(exceptions.Exception) TabUnexpectedResponseException telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList(_abcoll.Sequence) TabListBackend
class TabListBackend(telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList)
`` | `A dynamic sequence of tab.Tabs in UI order.`
| Method resolution order: TabListBackend telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList _abcoll.Sequence _abcoll.Sized _abcoll.Iterable _abcoll.Container __builtin__.object Methods defined here: ActivateTab(self, tab_id, timeout=30) `Activates the tab with the given debugger_url. Raises: devtools_http.DevToolsClientConnectionError devtools_client_backend.TabNotFoundError TabUnexpectedResponseException` CloseTab(self, tab_id, timeout=300) `Closes the tab with the given debugger_url. Raises: devtools_http.DevToolsClientConnectionError devtools_client_backend.TabNotFoundError TabUnexpectedResponseException exceptions.TimeoutException` CreateWrapper(self, inspector_backend) Get(self, index, ret) `Returns self[index] if it exists, or ret if index is out of bounds.` New(self, timeout) `Makes a new tab. Returns: A Tab object. Raises: devtools_http.DevToolsClientConnectionError` ShouldIncludeContext(self, context) __init__(self, browser_backend) Data and other attributes defined here: __abstractmethods__ = frozenset([]) Methods inherited from telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList: GetBackendFromContextId(self, context_id) GetContextInfo(self, context_id) GetTabById(self, identifier) IterContextIds(self) __getitem__(self, index) `# TODO(nednguyen): Remove this method and turn inspector_backend_list API to # dictionary-like API (crbug.com/398467)` __iter__(self) __len__(self) Data descriptors inherited from telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList: app Methods inherited from _abcoll.Sequence: __contains__(self, value) __reversed__(self) count(self, value) `S.count(value) -> integer -- return number of occurrences of value` index(self, value) `S.index(value) -> integer -- return first index of value. Raises ValueError if the value is not present.` Class methods inherited from _abcoll.Sized: __subclasshook__(cls, C) from abc.ABCMeta Data descriptors inherited from _abcoll.Sized: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from _abcoll.Sized: __metaclass__ = <class 'abc.ABCMeta'> `Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as 'virtual subclasses' -- these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won't show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).`
class TabUnexpectedResponseException(telemetry.core.exceptions.Error)
`` |  | Method resolution order: TabUnexpectedResponseException telemetry.core.exceptions.Error exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from telemetry.core.exceptions.Error: AddDebuggingMessage(self, msg) `Adds a message to the description of the exception. Many Telemetry exceptions arise from failures in another application. These failures are difficult to pinpoint. This method allows Telemetry classes to append useful debugging information to the exception. This method also logs information about the location from where it was called.` __init__(self, msg='') __str__(self) Data descriptors inherited from telemetry.core.exceptions.Error: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message