浏览器协议
Chrome DevTools 协议的浏览器域命令、事件和类型。
方法
pydoll.protocol.browser.methods
GetBrowserCommandLineResponse
module-attribute
GetBrowserCommandLineResponse = Response[GetBrowserCommandLineResult]
GetWindowForTargetResponse
module-attribute
GetWindowForTargetResponse = Response[GetWindowForTargetResult]
AddPrivacySandboxCoordinatorKeyConfigCommand
module-attribute
AddPrivacySandboxCoordinatorKeyConfigCommand = Command[AddPrivacySandboxCoordinatorKeyConfigParams, EmptyResponse]
AddPrivacySandboxEnrollmentOverrideCommand
module-attribute
AddPrivacySandboxEnrollmentOverrideCommand = Command[AddPrivacySandboxEnrollmentOverrideParams, EmptyResponse]
CancelDownloadCommand
module-attribute
CancelDownloadCommand = Command[CancelDownloadParams, EmptyResponse]
CrashGpuProcessCommand
module-attribute
CrashGpuProcessCommand = Command[EmptyParams, EmptyResponse]
ExecuteBrowserCommandCommand
module-attribute
ExecuteBrowserCommandCommand = Command[ExecuteBrowserCommandParams, EmptyResponse]
GetBrowserCommandLineCommand
module-attribute
GetBrowserCommandLineCommand = Command[EmptyParams, GetBrowserCommandLineResponse]
GetHistogramCommand
module-attribute
GetHistogramCommand = Command[GetHistogramParams, GetHistogramResponse]
GetHistogramsCommand
module-attribute
GetHistogramsCommand = Command[GetHistogramsParams, GetHistogramsResponse]
GetWindowBoundsCommand
module-attribute
GetWindowBoundsCommand = Command[GetWindowBoundsParams, GetWindowBoundsResponse]
GetWindowForTargetCommand
module-attribute
GetWindowForTargetCommand = Command[GetWindowForTargetParams, GetWindowForTargetResponse]
GrantPermissionsCommand
module-attribute
GrantPermissionsCommand = Command[GrantPermissionsParams, EmptyResponse]
ResetPermissionsCommand
module-attribute
ResetPermissionsCommand = Command[ResetPermissionsParams, EmptyResponse]
SetContentsSizeCommand
module-attribute
SetContentsSizeCommand = Command[SetContentsSizeParams, EmptyResponse]
SetDownloadBehaviorCommand
module-attribute
SetDownloadBehaviorCommand = Command[SetDownloadBehaviorParams, EmptyResponse]
SetPermissionCommand
module-attribute
SetPermissionCommand = Command[SetPermissionParams, EmptyResponse]
SetWindowBoundsCommand
module-attribute
SetWindowBoundsCommand = Command[SetWindowBoundsParams, EmptyResponse]
BrowserMethod
Bases: str
, Enum
Browser domain method names.
ADD_PRIVACY_SANDBOX_COORDINATOR_KEY_CONFIG
class-attribute
instance-attribute
ADD_PRIVACY_SANDBOX_ENROLLMENT_OVERRIDE
class-attribute
instance-attribute
EXECUTE_BROWSER_COMMAND
class-attribute
instance-attribute
GET_BROWSER_COMMAND_LINE
class-attribute
instance-attribute
GET_WINDOW_FOR_TARGET
class-attribute
instance-attribute
SET_DOWNLOAD_BEHAVIOR
class-attribute
instance-attribute
SetPermissionParams
GrantPermissionsParams
ResetPermissionsParams
SetDownloadBehaviorParams
CancelDownloadParams
GetHistogramsParams
GetHistogramParams
GetWindowBoundsParams
GetWindowForTargetParams
SetWindowBoundsParams
SetContentsSizeParams
SetDockTileParams
ExecuteBrowserCommandParams
AddPrivacySandboxEnrollmentOverrideParams
AddPrivacySandboxCoordinatorKeyConfigParams
GetVersionResult
GetBrowserCommandLineResult
GetHistogramsResult
GetHistogramResult
GetWindowBoundsResult
事件
pydoll.protocol.browser.events
DownloadProgressEvent
module-attribute
DownloadProgressEvent = CDPEvent[DownloadProgressEventParams]
DownloadWillBeginEvent
module-attribute
DownloadWillBeginEvent = CDPEvent[DownloadWillBeginEventParams]
BrowserEvent
Bases: str
, Enum
Events from the Browser domain of the Chrome DevTools Protocol.
This enumeration contains the names of browser-related events that can be received from the Chrome DevTools Protocol. These events provide information about browser activities and state changes.
DOWNLOAD_PROGRESS
class-attribute
instance-attribute
Fired when download makes progress. The last call has |done| == true.
PARAMETER | DESCRIPTION |
---|---|
guid
|
Global unique identifier of the download.
TYPE:
|
totalBytes
|
Total expected bytes to download.
TYPE:
|
receivedBytes
|
Total bytes received.
TYPE:
|
state
|
Download status. Allowed values: 'inProgress', 'completed', 'canceled'
TYPE:
|
DOWNLOAD_WILL_BEGIN
class-attribute
instance-attribute
Fired when page is about to start a download.
PARAMETER | DESCRIPTION |
---|---|
frameId
|
Id of the frame that caused the download to begin.
TYPE:
|
guid
|
Global unique identifier of the download.
TYPE:
|
url
|
URL of the resource being downloaded.
TYPE:
|
suggestedFilename
|
Suggested file name of the resource (the actual name of the file saved on disk may differ).
TYPE:
|
DownloadProgressEventParams
类型
pydoll.protocol.browser.types
WindowState
Bases: str
, Enum
The state of the browser window.
DownloadBehavior
DownloadProgressState
Bounds
PermissionType
Bases: str
, Enum
Permission types.
AUTOMATIC_FULLSCREEN
class-attribute
instance-attribute
CAPTURED_SURFACE_CONTROL
class-attribute
instance-attribute
CLIPBOARD_SANITIZED_WRITE
class-attribute
instance-attribute
PERIODIC_BACKGROUND_SYNC
class-attribute
instance-attribute
PROTECTED_MEDIA_IDENTIFIER
class-attribute
instance-attribute
TOP_LEVEL_STORAGE_ACCESS
class-attribute
instance-attribute
PermissionSetting
PermissionDescriptor
Bases: TypedDict
Definition of PermissionDescriptor defined in the Permissions API.
See https://w3c.github.io/permissions/#dom-permissiondescriptor.
BrowserCommandId
Bases: str
, Enum
Browser command ids used by executeBrowserCommand.