Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# Schema

This domain is deprecated.

- Types

- Commands

- Events

## Types

Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.

class Domain(name, version)

  Description of the protocol domain.

  name: `str`

    Domain name.

  version: `str`

    Domain version.

## Commands

Each command is a generator function. The return type `Generator[x, y, z]` indicates that the generator yields arguments of type `x`, it must be resumed with an argument of type `y`, and it returns type `z`. In this library, types `x` and `y` are the same for all commands, and `z` is the return type you should pay attention to. For more information, see Getting Started: Commands.

get_domains()

  Returns supported domains.

  Return type:

    `Generator`[`Dict`[`str`, `Any`], `Dict`[`str`, `Any`], `List`[`Domain`]]

  Returns:

    List of supported domains.

## Events

There are no events in this module.