Extensions#
Defines commands and events for browser extensions.
This CDP domain is experimental.
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.
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_storage_items(id_, storage_area, keys=None)[source]#
Gets data from extension storage in the given
storageArea. Ifkeysis specified, these are used to filter the result.
- load_unpacked(path)[source]#
Installs an unpacked extension from the filesystem similar to –load-extension CLI flags. Returns extension ID once the extension has been installed. Available if the client is connected using the –remote-debugging-pipe flag and the –enable-unsafe-extension-debugging flag is set.
- remove_storage_items(id_, storage_area, keys)[source]#
Removes
keysfrom extension storage in the givenstorageArea.
- set_storage_items(id_, storage_area, values)[source]#
Sets
valuesin extension storage in the givenstorageArea. The providedvalueswill be merged with existing values in the storage area.
Events#
There are no events in this module.