device_access
DeviceId
Bases: str
A device id.
Source code in zendriver/cdp/device_access.py
__repr__()
from_json(json)
classmethod
DeviceRequestPrompted
dataclass
A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.
Source code in zendriver/cdp/device_access.py
devices: typing.List[PromptDevice]
instance-attribute
id_: RequestId
instance-attribute
__init__(id_, devices)
PromptDevice
dataclass
Device information displayed in a user prompt to select a device.
Source code in zendriver/cdp/device_access.py
id_: DeviceId
instance-attribute
name: str
instance-attribute
__init__(id_, name)
from_json(json)
classmethod
RequestId
Bases: str
Device request id.
Source code in zendriver/cdp/device_access.py
__repr__()
from_json(json)
classmethod
cancel_prompt(id_)
Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id_
|
RequestId
|
|
required |
Source code in zendriver/cdp/device_access.py
disable()
enable()
select_prompt(id_, device_id)
Select a device in response to a DeviceAccess.deviceRequestPrompted event.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id_
|
RequestId
|
|
required |
device_id
|
DeviceId
|
|
required |