audits
AffectedCookie
dataclass
Information about a cookie that is affected by an inspector issue.
Source code in zendriver/cdp/audits.py
domain: str
instance-attribute
name: str
instance-attribute
path: str
instance-attribute
__init__(name, path, domain)
from_json(json)
classmethod
AffectedFrame
dataclass
Information about the frame affected by an inspector issue.
Source code in zendriver/cdp/audits.py
frame_id: page.FrameId
instance-attribute
__init__(frame_id)
from_json(json)
classmethod
AffectedRequest
dataclass
Information about a request that is affected by an inspector issue.
Source code in zendriver/cdp/audits.py
request_id: network.RequestId
instance-attribute
url: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(request_id, url=None)
from_json(json)
classmethod
AttributionReportingIssueDetails
dataclass
Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api
Source code in zendriver/cdp/audits.py
invalid_parameter: typing.Optional[str] = None
class-attribute
instance-attribute
request: typing.Optional[AffectedRequest] = None
class-attribute
instance-attribute
violating_node_id: typing.Optional[dom.BackendNodeId] = None
class-attribute
instance-attribute
violation_type: AttributionReportingIssueType
instance-attribute
__init__(violation_type, request=None, violating_node_id=None, invalid_parameter=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
AttributionReportingIssueType
Bases: Enum
Source code in zendriver/cdp/audits.py
INSECURE_CONTEXT = 'InsecureContext'
class-attribute
instance-attribute
INVALID_HEADER = 'InvalidHeader'
class-attribute
instance-attribute
INVALID_INFO_HEADER = 'InvalidInfoHeader'
class-attribute
instance-attribute
INVALID_REGISTER_OS_SOURCE_HEADER = 'InvalidRegisterOsSourceHeader'
class-attribute
instance-attribute
INVALID_REGISTER_OS_TRIGGER_HEADER = 'InvalidRegisterOsTriggerHeader'
class-attribute
instance-attribute
INVALID_REGISTER_TRIGGER_HEADER = 'InvalidRegisterTriggerHeader'
class-attribute
instance-attribute
NAVIGATION_REGISTRATION_UNIQUE_SCOPE_ALREADY_SET = 'NavigationRegistrationUniqueScopeAlreadySet'
class-attribute
instance-attribute
NAVIGATION_REGISTRATION_WITHOUT_TRANSIENT_USER_ACTIVATION = 'NavigationRegistrationWithoutTransientUserActivation'
class-attribute
instance-attribute
NO_REGISTER_OS_SOURCE_HEADER = 'NoRegisterOsSourceHeader'
class-attribute
instance-attribute
NO_REGISTER_OS_TRIGGER_HEADER = 'NoRegisterOsTriggerHeader'
class-attribute
instance-attribute
NO_REGISTER_SOURCE_HEADER = 'NoRegisterSourceHeader'
class-attribute
instance-attribute
NO_REGISTER_TRIGGER_HEADER = 'NoRegisterTriggerHeader'
class-attribute
instance-attribute
NO_WEB_OR_OS_SUPPORT = 'NoWebOrOsSupport'
class-attribute
instance-attribute
OS_SOURCE_IGNORED = 'OsSourceIgnored'
class-attribute
instance-attribute
OS_TRIGGER_IGNORED = 'OsTriggerIgnored'
class-attribute
instance-attribute
PERMISSION_POLICY_DISABLED = 'PermissionPolicyDisabled'
class-attribute
instance-attribute
SOURCE_AND_TRIGGER_HEADERS = 'SourceAndTriggerHeaders'
class-attribute
instance-attribute
SOURCE_IGNORED = 'SourceIgnored'
class-attribute
instance-attribute
TRIGGER_IGNORED = 'TriggerIgnored'
class-attribute
instance-attribute
UNTRUSTWORTHY_REPORTING_ORIGIN = 'UntrustworthyReportingOrigin'
class-attribute
instance-attribute
WEB_AND_OS_HEADERS = 'WebAndOsHeaders'
class-attribute
instance-attribute
from_json(json)
classmethod
BlockedByResponseIssueDetails
dataclass
Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.
Source code in zendriver/cdp/audits.py
blocked_frame: typing.Optional[AffectedFrame] = None
class-attribute
instance-attribute
parent_frame: typing.Optional[AffectedFrame] = None
class-attribute
instance-attribute
reason: BlockedByResponseReason
instance-attribute
request: AffectedRequest
instance-attribute
__init__(request, reason, parent_frame=None, blocked_frame=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
BlockedByResponseReason
Bases: Enum
Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.
Source code in zendriver/cdp/audits.py
COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER = 'CoepFrameResourceNeedsCoepHeader'
class-attribute
instance-attribute
COOP_SANDBOXED_I_FRAME_CANNOT_NAVIGATE_TO_COOP_PAGE = 'CoopSandboxedIFrameCannotNavigateToCoopPage'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN = 'CorpNotSameOrigin'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP = 'CorpNotSameOriginAfterDefaultedToSameOriginByCoep'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP_AND_DIP = 'CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP = 'CorpNotSameOriginAfterDefaultedToSameOriginByDip'
class-attribute
instance-attribute
CORP_NOT_SAME_SITE = 'CorpNotSameSite'
class-attribute
instance-attribute
from_json(json)
classmethod
BounceTrackingIssueDetails
dataclass
This issue warns about sites in the redirect chain of a finished navigation
that may be flagged as trackers and have their state cleared if they don't
receive a user interaction. Note that in this context 'site' means eTLD+1.
For example, if the URL https://example.test:80/bounce
was in the
redirect chain, the site reported would be example.test
.
Source code in zendriver/cdp/audits.py
tracking_sites: typing.List[str]
instance-attribute
__init__(tracking_sites)
from_json(json)
classmethod
ClientHintIssueDetails
dataclass
This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.
Source code in zendriver/cdp/audits.py
client_hint_issue_reason: ClientHintIssueReason
instance-attribute
source_code_location: SourceCodeLocation
instance-attribute
__init__(source_code_location, client_hint_issue_reason)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
ClientHintIssueReason
Bases: Enum
Source code in zendriver/cdp/audits.py
META_TAG_ALLOW_LIST_INVALID_ORIGIN = 'MetaTagAllowListInvalidOrigin'
class-attribute
instance-attribute
META_TAG_MODIFIED_HTML = 'MetaTagModifiedHTML'
class-attribute
instance-attribute
from_json(json)
classmethod
ContentSecurityPolicyIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
blocked_url: typing.Optional[str] = None
class-attribute
instance-attribute
content_security_policy_violation_type: ContentSecurityPolicyViolationType
instance-attribute
frame_ancestor: typing.Optional[AffectedFrame] = None
class-attribute
instance-attribute
is_report_only: bool
instance-attribute
source_code_location: typing.Optional[SourceCodeLocation] = None
class-attribute
instance-attribute
violated_directive: str
instance-attribute
violating_node_id: typing.Optional[dom.BackendNodeId] = None
class-attribute
instance-attribute
__init__(violated_directive, is_report_only, content_security_policy_violation_type, blocked_url=None, frame_ancestor=None, source_code_location=None, violating_node_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
ContentSecurityPolicyViolationType
Bases: Enum
Source code in zendriver/cdp/audits.py
K_EVAL_VIOLATION = 'kEvalViolation'
class-attribute
instance-attribute
K_INLINE_VIOLATION = 'kInlineViolation'
class-attribute
instance-attribute
K_TRUSTED_TYPES_POLICY_VIOLATION = 'kTrustedTypesPolicyViolation'
class-attribute
instance-attribute
K_TRUSTED_TYPES_SINK_VIOLATION = 'kTrustedTypesSinkViolation'
class-attribute
instance-attribute
K_URL_VIOLATION = 'kURLViolation'
class-attribute
instance-attribute
K_WASM_EVAL_VIOLATION = 'kWasmEvalViolation'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieDeprecationMetadataIssueDetails
dataclass
This issue warns about third-party sites that are accessing cookies on the
current page, and have been permitted due to having a global metadata grant.
Note that in this context 'site' means eTLD+1. For example, if the URL
https://example.test:80/web_page
was accessing cookies, the site reported
would be example.test
.
Source code in zendriver/cdp/audits.py
allowed_sites: typing.List[str]
instance-attribute
is_opt_out_top_level: bool
instance-attribute
operation: CookieOperation
instance-attribute
opt_out_percentage: float
instance-attribute
__init__(allowed_sites, opt_out_percentage, is_opt_out_top_level, operation)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
CookieExclusionReason
Bases: Enum
Source code in zendriver/cdp/audits.py
EXCLUDE_DOMAIN_NON_ASCII = 'ExcludeDomainNonASCII'
class-attribute
instance-attribute
EXCLUDE_INVALID_SAME_PARTY = 'ExcludeInvalidSameParty'
class-attribute
instance-attribute
EXCLUDE_PORT_MISMATCH = 'ExcludePortMismatch'
class-attribute
instance-attribute
EXCLUDE_SAME_PARTY_CROSS_PARTY_CONTEXT = 'ExcludeSamePartyCrossPartyContext'
class-attribute
instance-attribute
EXCLUDE_SAME_SITE_LAX = 'ExcludeSameSiteLax'
class-attribute
instance-attribute
EXCLUDE_SAME_SITE_NONE_INSECURE = 'ExcludeSameSiteNoneInsecure'
class-attribute
instance-attribute
EXCLUDE_SAME_SITE_STRICT = 'ExcludeSameSiteStrict'
class-attribute
instance-attribute
EXCLUDE_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'ExcludeSameSiteUnspecifiedTreatedAsLax'
class-attribute
instance-attribute
EXCLUDE_SCHEME_MISMATCH = 'ExcludeSchemeMismatch'
class-attribute
instance-attribute
EXCLUDE_THIRD_PARTY_COOKIE_BLOCKED_IN_FIRST_PARTY_SET = 'ExcludeThirdPartyCookieBlockedInFirstPartySet'
class-attribute
instance-attribute
EXCLUDE_THIRD_PARTY_PHASEOUT = 'ExcludeThirdPartyPhaseout'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieIssueDetails
dataclass
This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.
Source code in zendriver/cdp/audits.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
|
cookie: typing.Optional[AffectedCookie] = None
class-attribute
instance-attribute
cookie_exclusion_reasons: typing.List[CookieExclusionReason]
instance-attribute
cookie_url: typing.Optional[str] = None
class-attribute
instance-attribute
cookie_warning_reasons: typing.List[CookieWarningReason]
instance-attribute
operation: CookieOperation
instance-attribute
raw_cookie_line: typing.Optional[str] = None
class-attribute
instance-attribute
request: typing.Optional[AffectedRequest] = None
class-attribute
instance-attribute
site_for_cookies: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(cookie_warning_reasons, cookie_exclusion_reasons, operation, cookie=None, raw_cookie_line=None, site_for_cookies=None, cookie_url=None, request=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
CookieOperation
Bases: Enum
Source code in zendriver/cdp/audits.py
READ_COOKIE = 'ReadCookie'
class-attribute
instance-attribute
SET_COOKIE = 'SetCookie'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieWarningReason
Bases: Enum
Source code in zendriver/cdp/audits.py
WARN_ATTRIBUTE_VALUE_EXCEEDS_MAX_SIZE = 'WarnAttributeValueExceedsMaxSize'
class-attribute
instance-attribute
WARN_CROSS_SITE_REDIRECT_DOWNGRADE_CHANGES_INCLUSION = 'WarnCrossSiteRedirectDowngradeChangesInclusion'
class-attribute
instance-attribute
WARN_DEPRECATION_TRIAL_METADATA = 'WarnDeprecationTrialMetadata'
class-attribute
instance-attribute
WARN_DOMAIN_NON_ASCII = 'WarnDomainNonASCII'
class-attribute
instance-attribute
WARN_SAME_SITE_LAX_CROSS_DOWNGRADE_LAX = 'WarnSameSiteLaxCrossDowngradeLax'
class-attribute
instance-attribute
WARN_SAME_SITE_LAX_CROSS_DOWNGRADE_STRICT = 'WarnSameSiteLaxCrossDowngradeStrict'
class-attribute
instance-attribute
WARN_SAME_SITE_NONE_INSECURE = 'WarnSameSiteNoneInsecure'
class-attribute
instance-attribute
WARN_SAME_SITE_STRICT_CROSS_DOWNGRADE_LAX = 'WarnSameSiteStrictCrossDowngradeLax'
class-attribute
instance-attribute
WARN_SAME_SITE_STRICT_CROSS_DOWNGRADE_STRICT = 'WarnSameSiteStrictCrossDowngradeStrict'
class-attribute
instance-attribute
WARN_SAME_SITE_STRICT_LAX_DOWNGRADE_STRICT = 'WarnSameSiteStrictLaxDowngradeStrict'
class-attribute
instance-attribute
WARN_SAME_SITE_UNSPECIFIED_CROSS_SITE_CONTEXT = 'WarnSameSiteUnspecifiedCrossSiteContext'
class-attribute
instance-attribute
WARN_SAME_SITE_UNSPECIFIED_LAX_ALLOW_UNSAFE = 'WarnSameSiteUnspecifiedLaxAllowUnsafe'
class-attribute
instance-attribute
WARN_THIRD_PARTY_COOKIE_HEURISTIC = 'WarnThirdPartyCookieHeuristic'
class-attribute
instance-attribute
WARN_THIRD_PARTY_PHASEOUT = 'WarnThirdPartyPhaseout'
class-attribute
instance-attribute
from_json(json)
classmethod
CorsIssueDetails
dataclass
Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.
Source code in zendriver/cdp/audits.py
client_security_state: typing.Optional[network.ClientSecurityState] = None
class-attribute
instance-attribute
cors_error_status: network.CorsErrorStatus
instance-attribute
initiator_origin: typing.Optional[str] = None
class-attribute
instance-attribute
is_warning: bool
instance-attribute
location: typing.Optional[SourceCodeLocation] = None
class-attribute
instance-attribute
request: AffectedRequest
instance-attribute
resource_ip_address_space: typing.Optional[network.IPAddressSpace] = None
class-attribute
instance-attribute
__init__(cors_error_status, is_warning, request, location=None, initiator_origin=None, resource_ip_address_space=None, client_security_state=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
DeprecationIssueDetails
dataclass
This issue tracks information needed to print a deprecation message. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
Source code in zendriver/cdp/audits.py
affected_frame: typing.Optional[AffectedFrame] = None
class-attribute
instance-attribute
source_code_location: SourceCodeLocation
instance-attribute
type_: str
instance-attribute
__init__(source_code_location, type_, affected_frame=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
FailedRequestInfo
dataclass
Source code in zendriver/cdp/audits.py
failure_message: str
instance-attribute
request_id: typing.Optional[network.RequestId] = None
class-attribute
instance-attribute
url: str
instance-attribute
__init__(url, failure_message, request_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
FederatedAuthRequestIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
federated_auth_request_issue_reason: FederatedAuthRequestIssueReason
instance-attribute
__init__(federated_auth_request_issue_reason)
from_json(json)
classmethod
FederatedAuthRequestIssueReason
Bases: Enum
Represents the failure reason when a federated authentication reason fails. Should be updated alongside RequestIdTokenStatus in third_party/blink/public/mojom/devtools/inspector_issue.mojom to include all cases except for success.
Source code in zendriver/cdp/audits.py
ACCOUNTS_HTTP_NOT_FOUND = 'AccountsHttpNotFound'
class-attribute
instance-attribute
ACCOUNTS_INVALID_CONTENT_TYPE = 'AccountsInvalidContentType'
class-attribute
instance-attribute
ACCOUNTS_INVALID_RESPONSE = 'AccountsInvalidResponse'
class-attribute
instance-attribute
ACCOUNTS_LIST_EMPTY = 'AccountsListEmpty'
class-attribute
instance-attribute
ACCOUNTS_NO_RESPONSE = 'AccountsNoResponse'
class-attribute
instance-attribute
CANCELED = 'Canceled'
class-attribute
instance-attribute
CLIENT_METADATA_HTTP_NOT_FOUND = 'ClientMetadataHttpNotFound'
class-attribute
instance-attribute
CLIENT_METADATA_INVALID_CONTENT_TYPE = 'ClientMetadataInvalidContentType'
class-attribute
instance-attribute
CLIENT_METADATA_INVALID_RESPONSE = 'ClientMetadataInvalidResponse'
class-attribute
instance-attribute
CLIENT_METADATA_NO_RESPONSE = 'ClientMetadataNoResponse'
class-attribute
instance-attribute
CONFIG_HTTP_NOT_FOUND = 'ConfigHttpNotFound'
class-attribute
instance-attribute
CONFIG_INVALID_CONTENT_TYPE = 'ConfigInvalidContentType'
class-attribute
instance-attribute
CONFIG_INVALID_RESPONSE = 'ConfigInvalidResponse'
class-attribute
instance-attribute
CONFIG_NOT_IN_WELL_KNOWN = 'ConfigNotInWellKnown'
class-attribute
instance-attribute
CONFIG_NO_RESPONSE = 'ConfigNoResponse'
class-attribute
instance-attribute
DISABLED_IN_FLAGS = 'DisabledInFlags'
class-attribute
instance-attribute
DISABLED_IN_SETTINGS = 'DisabledInSettings'
class-attribute
instance-attribute
ERROR_FETCHING_SIGNIN = 'ErrorFetchingSignin'
class-attribute
instance-attribute
ERROR_ID_TOKEN = 'ErrorIdToken'
class-attribute
instance-attribute
IDP_NOT_POTENTIALLY_TRUSTWORTHY = 'IdpNotPotentiallyTrustworthy'
class-attribute
instance-attribute
ID_TOKEN_CROSS_SITE_IDP_ERROR_RESPONSE = 'IdTokenCrossSiteIdpErrorResponse'
class-attribute
instance-attribute
ID_TOKEN_HTTP_NOT_FOUND = 'IdTokenHttpNotFound'
class-attribute
instance-attribute
ID_TOKEN_IDP_ERROR_RESPONSE = 'IdTokenIdpErrorResponse'
class-attribute
instance-attribute
ID_TOKEN_INVALID_CONTENT_TYPE = 'IdTokenInvalidContentType'
class-attribute
instance-attribute
ID_TOKEN_INVALID_REQUEST = 'IdTokenInvalidRequest'
class-attribute
instance-attribute
ID_TOKEN_INVALID_RESPONSE = 'IdTokenInvalidResponse'
class-attribute
instance-attribute
ID_TOKEN_NO_RESPONSE = 'IdTokenNoResponse'
class-attribute
instance-attribute
INVALID_FIELDS_SPECIFIED = 'InvalidFieldsSpecified'
class-attribute
instance-attribute
INVALID_SIGNIN_RESPONSE = 'InvalidSigninResponse'
class-attribute
instance-attribute
MISSING_TRANSIENT_USER_ACTIVATION = 'MissingTransientUserActivation'
class-attribute
instance-attribute
NOT_SIGNED_IN_WITH_IDP = 'NotSignedInWithIdp'
class-attribute
instance-attribute
RELYING_PARTY_ORIGIN_IS_OPAQUE = 'RelyingPartyOriginIsOpaque'
class-attribute
instance-attribute
REPLACED_BY_ACTIVE_MODE = 'ReplacedByActiveMode'
class-attribute
instance-attribute
RP_PAGE_NOT_VISIBLE = 'RpPageNotVisible'
class-attribute
instance-attribute
SHOULD_EMBARGO = 'ShouldEmbargo'
class-attribute
instance-attribute
SILENT_MEDIATION_FAILURE = 'SilentMediationFailure'
class-attribute
instance-attribute
THIRD_PARTY_COOKIES_BLOCKED = 'ThirdPartyCookiesBlocked'
class-attribute
instance-attribute
TOO_MANY_REQUESTS = 'TooManyRequests'
class-attribute
instance-attribute
TYPE_NOT_MATCHING = 'TypeNotMatching'
class-attribute
instance-attribute
WELL_KNOWN_HTTP_NOT_FOUND = 'WellKnownHttpNotFound'
class-attribute
instance-attribute
WELL_KNOWN_INVALID_CONTENT_TYPE = 'WellKnownInvalidContentType'
class-attribute
instance-attribute
WELL_KNOWN_INVALID_RESPONSE = 'WellKnownInvalidResponse'
class-attribute
instance-attribute
WELL_KNOWN_LIST_EMPTY = 'WellKnownListEmpty'
class-attribute
instance-attribute
WELL_KNOWN_NO_RESPONSE = 'WellKnownNoResponse'
class-attribute
instance-attribute
WELL_KNOWN_TOO_BIG = 'WellKnownTooBig'
class-attribute
instance-attribute
from_json(json)
classmethod
FederatedAuthUserInfoRequestIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
federated_auth_user_info_request_issue_reason: FederatedAuthUserInfoRequestIssueReason
instance-attribute
__init__(federated_auth_user_info_request_issue_reason)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
FederatedAuthUserInfoRequestIssueReason
Bases: Enum
Represents the failure reason when a getUserInfo() call fails. Should be updated alongside FederatedAuthUserInfoRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.
Source code in zendriver/cdp/audits.py
INVALID_ACCOUNTS_RESPONSE = 'InvalidAccountsResponse'
class-attribute
instance-attribute
INVALID_CONFIG_OR_WELL_KNOWN = 'InvalidConfigOrWellKnown'
class-attribute
instance-attribute
NOT_IFRAME = 'NotIframe'
class-attribute
instance-attribute
NOT_POTENTIALLY_TRUSTWORTHY = 'NotPotentiallyTrustworthy'
class-attribute
instance-attribute
NOT_SAME_ORIGIN = 'NotSameOrigin'
class-attribute
instance-attribute
NOT_SIGNED_IN_WITH_IDP = 'NotSignedInWithIdp'
class-attribute
instance-attribute
NO_ACCOUNT_SHARING_PERMISSION = 'NoAccountSharingPermission'
class-attribute
instance-attribute
NO_API_PERMISSION = 'NoApiPermission'
class-attribute
instance-attribute
NO_RETURNING_USER_FROM_FETCHED_ACCOUNTS = 'NoReturningUserFromFetchedAccounts'
class-attribute
instance-attribute
from_json(json)
classmethod
GenericIssueDetails
dataclass
Depending on the concrete errorType, different properties are set.
Source code in zendriver/cdp/audits.py
error_type: GenericIssueErrorType
instance-attribute
frame_id: typing.Optional[page.FrameId] = None
class-attribute
instance-attribute
request: typing.Optional[AffectedRequest] = None
class-attribute
instance-attribute
violating_node_attribute: typing.Optional[str] = None
class-attribute
instance-attribute
violating_node_id: typing.Optional[dom.BackendNodeId] = None
class-attribute
instance-attribute
__init__(error_type, frame_id=None, violating_node_id=None, violating_node_attribute=None, request=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
GenericIssueErrorType
Bases: Enum
Source code in zendriver/cdp/audits.py
FORM_ARIA_LABELLED_BY_TO_NON_EXISTING_ID = 'FormAriaLabelledByToNonExistingId'
class-attribute
instance-attribute
FORM_AUTOCOMPLETE_ATTRIBUTE_EMPTY_ERROR = 'FormAutocompleteAttributeEmptyError'
class-attribute
instance-attribute
FORM_DUPLICATE_ID_FOR_INPUT_ERROR = 'FormDuplicateIdForInputError'
class-attribute
instance-attribute
FORM_EMPTY_ID_AND_NAME_ATTRIBUTES_FOR_INPUT_ERROR = 'FormEmptyIdAndNameAttributesForInputError'
class-attribute
instance-attribute
FORM_INPUT_ASSIGNED_AUTOCOMPLETE_VALUE_TO_ID_OR_NAME_ATTRIBUTE_ERROR = 'FormInputAssignedAutocompleteValueToIdOrNameAttributeError'
class-attribute
instance-attribute
FORM_INPUT_HAS_WRONG_BUT_WELL_INTENDED_AUTOCOMPLETE_VALUE_ERROR = 'FormInputHasWrongButWellIntendedAutocompleteValueError'
class-attribute
instance-attribute
FORM_INPUT_WITH_NO_LABEL_ERROR = 'FormInputWithNoLabelError'
class-attribute
instance-attribute
FORM_LABEL_FOR_MATCHES_NON_EXISTING_ID_ERROR = 'FormLabelForMatchesNonExistingIdError'
class-attribute
instance-attribute
FORM_LABEL_FOR_NAME_ERROR = 'FormLabelForNameError'
class-attribute
instance-attribute
FORM_LABEL_HAS_NEITHER_FOR_NOR_NESTED_INPUT = 'FormLabelHasNeitherForNorNestedInput'
class-attribute
instance-attribute
RESPONSE_WAS_BLOCKED_BY_ORB = 'ResponseWasBlockedByORB'
class-attribute
instance-attribute
from_json(json)
classmethod
HeavyAdIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
frame: AffectedFrame
instance-attribute
reason: HeavyAdReason
instance-attribute
resolution: HeavyAdResolutionStatus
instance-attribute
__init__(resolution, reason, frame)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
HeavyAdReason
Bases: Enum
Source code in zendriver/cdp/audits.py
CPU_PEAK_LIMIT = 'CpuPeakLimit'
class-attribute
instance-attribute
CPU_TOTAL_LIMIT = 'CpuTotalLimit'
class-attribute
instance-attribute
NETWORK_TOTAL_LIMIT = 'NetworkTotalLimit'
class-attribute
instance-attribute
from_json(json)
classmethod
HeavyAdResolutionStatus
Bases: Enum
Source code in zendriver/cdp/audits.py
HEAVY_AD_BLOCKED = 'HeavyAdBlocked'
class-attribute
instance-attribute
HEAVY_AD_WARNING = 'HeavyAdWarning'
class-attribute
instance-attribute
from_json(json)
classmethod
InspectorIssue
dataclass
An inspector issue reported from the back-end.
Source code in zendriver/cdp/audits.py
code: InspectorIssueCode
instance-attribute
details: InspectorIssueDetails
instance-attribute
issue_id: typing.Optional[IssueId] = None
class-attribute
instance-attribute
__init__(code, details, issue_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
InspectorIssueCode
Bases: Enum
A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.
Source code in zendriver/cdp/audits.py
ATTRIBUTION_REPORTING_ISSUE = 'AttributionReportingIssue'
class-attribute
instance-attribute
BLOCKED_BY_RESPONSE_ISSUE = 'BlockedByResponseIssue'
class-attribute
instance-attribute
BOUNCE_TRACKING_ISSUE = 'BounceTrackingIssue'
class-attribute
instance-attribute
CLIENT_HINT_ISSUE = 'ClientHintIssue'
class-attribute
instance-attribute
CONTENT_SECURITY_POLICY_ISSUE = 'ContentSecurityPolicyIssue'
class-attribute
instance-attribute
COOKIE_DEPRECATION_METADATA_ISSUE = 'CookieDeprecationMetadataIssue'
class-attribute
instance-attribute
COOKIE_ISSUE = 'CookieIssue'
class-attribute
instance-attribute
CORS_ISSUE = 'CorsIssue'
class-attribute
instance-attribute
DEPRECATION_ISSUE = 'DeprecationIssue'
class-attribute
instance-attribute
FEDERATED_AUTH_REQUEST_ISSUE = 'FederatedAuthRequestIssue'
class-attribute
instance-attribute
FEDERATED_AUTH_USER_INFO_REQUEST_ISSUE = 'FederatedAuthUserInfoRequestIssue'
class-attribute
instance-attribute
GENERIC_ISSUE = 'GenericIssue'
class-attribute
instance-attribute
HEAVY_AD_ISSUE = 'HeavyAdIssue'
class-attribute
instance-attribute
LOW_TEXT_CONTRAST_ISSUE = 'LowTextContrastIssue'
class-attribute
instance-attribute
MIXED_CONTENT_ISSUE = 'MixedContentIssue'
class-attribute
instance-attribute
NAVIGATOR_USER_AGENT_ISSUE = 'NavigatorUserAgentIssue'
class-attribute
instance-attribute
PROPERTY_RULE_ISSUE = 'PropertyRuleIssue'
class-attribute
instance-attribute
QUIRKS_MODE_ISSUE = 'QuirksModeIssue'
class-attribute
instance-attribute
SHARED_ARRAY_BUFFER_ISSUE = 'SharedArrayBufferIssue'
class-attribute
instance-attribute
SHARED_DICTIONARY_ISSUE = 'SharedDictionaryIssue'
class-attribute
instance-attribute
STYLESHEET_LOADING_ISSUE = 'StylesheetLoadingIssue'
class-attribute
instance-attribute
from_json(json)
classmethod
InspectorIssueDetails
dataclass
This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.
Source code in zendriver/cdp/audits.py
1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 |
|
attribution_reporting_issue_details: typing.Optional[AttributionReportingIssueDetails] = None
class-attribute
instance-attribute
blocked_by_response_issue_details: typing.Optional[BlockedByResponseIssueDetails] = None
class-attribute
instance-attribute
bounce_tracking_issue_details: typing.Optional[BounceTrackingIssueDetails] = None
class-attribute
instance-attribute
client_hint_issue_details: typing.Optional[ClientHintIssueDetails] = None
class-attribute
instance-attribute
content_security_policy_issue_details: typing.Optional[ContentSecurityPolicyIssueDetails] = None
class-attribute
instance-attribute
cookie_deprecation_metadata_issue_details: typing.Optional[CookieDeprecationMetadataIssueDetails] = None
class-attribute
instance-attribute
cookie_issue_details: typing.Optional[CookieIssueDetails] = None
class-attribute
instance-attribute
cors_issue_details: typing.Optional[CorsIssueDetails] = None
class-attribute
instance-attribute
deprecation_issue_details: typing.Optional[DeprecationIssueDetails] = None
class-attribute
instance-attribute
federated_auth_request_issue_details: typing.Optional[FederatedAuthRequestIssueDetails] = None
class-attribute
instance-attribute
federated_auth_user_info_request_issue_details: typing.Optional[FederatedAuthUserInfoRequestIssueDetails] = None
class-attribute
instance-attribute
generic_issue_details: typing.Optional[GenericIssueDetails] = None
class-attribute
instance-attribute
heavy_ad_issue_details: typing.Optional[HeavyAdIssueDetails] = None
class-attribute
instance-attribute
low_text_contrast_issue_details: typing.Optional[LowTextContrastIssueDetails] = None
class-attribute
instance-attribute
mixed_content_issue_details: typing.Optional[MixedContentIssueDetails] = None
class-attribute
instance-attribute
navigator_user_agent_issue_details: typing.Optional[NavigatorUserAgentIssueDetails] = None
class-attribute
instance-attribute
property_rule_issue_details: typing.Optional[PropertyRuleIssueDetails] = None
class-attribute
instance-attribute
quirks_mode_issue_details: typing.Optional[QuirksModeIssueDetails] = None
class-attribute
instance-attribute
shared_array_buffer_issue_details: typing.Optional[SharedArrayBufferIssueDetails] = None
class-attribute
instance-attribute
shared_dictionary_issue_details: typing.Optional[SharedDictionaryIssueDetails] = None
class-attribute
instance-attribute
stylesheet_loading_issue_details: typing.Optional[StylesheetLoadingIssueDetails] = None
class-attribute
instance-attribute
__init__(cookie_issue_details=None, mixed_content_issue_details=None, blocked_by_response_issue_details=None, heavy_ad_issue_details=None, content_security_policy_issue_details=None, shared_array_buffer_issue_details=None, low_text_contrast_issue_details=None, cors_issue_details=None, attribution_reporting_issue_details=None, quirks_mode_issue_details=None, navigator_user_agent_issue_details=None, generic_issue_details=None, deprecation_issue_details=None, client_hint_issue_details=None, federated_auth_request_issue_details=None, bounce_tracking_issue_details=None, cookie_deprecation_metadata_issue_details=None, stylesheet_loading_issue_details=None, property_rule_issue_details=None, federated_auth_user_info_request_issue_details=None, shared_dictionary_issue_details=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 |
|
to_json()
Source code in zendriver/cdp/audits.py
1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 |
|
IssueAdded
dataclass
Source code in zendriver/cdp/audits.py
IssueId
Bases: str
A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue.
Source code in zendriver/cdp/audits.py
__repr__()
from_json(json)
classmethod
LowTextContrastIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
contrast_ratio: float
instance-attribute
font_size: str
instance-attribute
font_weight: str
instance-attribute
threshold_aa: float
instance-attribute
threshold_aaa: float
instance-attribute
violating_node_id: dom.BackendNodeId
instance-attribute
violating_node_selector: str
instance-attribute
__init__(violating_node_id, violating_node_selector, contrast_ratio, threshold_aa, threshold_aaa, font_size, font_weight)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
MixedContentIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
frame: typing.Optional[AffectedFrame] = None
class-attribute
instance-attribute
insecure_url: str
instance-attribute
main_resource_url: str
instance-attribute
request: typing.Optional[AffectedRequest] = None
class-attribute
instance-attribute
resolution_status: MixedContentResolutionStatus
instance-attribute
resource_type: typing.Optional[MixedContentResourceType] = None
class-attribute
instance-attribute
__init__(resolution_status, insecure_url, main_resource_url, resource_type=None, request=None, frame=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
MixedContentResolutionStatus
Bases: Enum
Source code in zendriver/cdp/audits.py
MIXED_CONTENT_AUTOMATICALLY_UPGRADED = 'MixedContentAutomaticallyUpgraded'
class-attribute
instance-attribute
MIXED_CONTENT_BLOCKED = 'MixedContentBlocked'
class-attribute
instance-attribute
MIXED_CONTENT_WARNING = 'MixedContentWarning'
class-attribute
instance-attribute
from_json(json)
classmethod
MixedContentResourceType
Bases: Enum
Source code in zendriver/cdp/audits.py
ATTRIBUTION_SRC = 'AttributionSrc'
class-attribute
instance-attribute
AUDIO = 'Audio'
class-attribute
instance-attribute
BEACON = 'Beacon'
class-attribute
instance-attribute
CSP_REPORT = 'CSPReport'
class-attribute
instance-attribute
DOWNLOAD = 'Download'
class-attribute
instance-attribute
EVENT_SOURCE = 'EventSource'
class-attribute
instance-attribute
FAVICON = 'Favicon'
class-attribute
instance-attribute
FONT = 'Font'
class-attribute
instance-attribute
FORM = 'Form'
class-attribute
instance-attribute
FRAME = 'Frame'
class-attribute
instance-attribute
IMAGE = 'Image'
class-attribute
instance-attribute
IMPORT = 'Import'
class-attribute
instance-attribute
JSON = 'JSON'
class-attribute
instance-attribute
MANIFEST = 'Manifest'
class-attribute
instance-attribute
PING = 'Ping'
class-attribute
instance-attribute
PLUGIN_DATA = 'PluginData'
class-attribute
instance-attribute
PLUGIN_RESOURCE = 'PluginResource'
class-attribute
instance-attribute
PREFETCH = 'Prefetch'
class-attribute
instance-attribute
RESOURCE = 'Resource'
class-attribute
instance-attribute
SCRIPT = 'Script'
class-attribute
instance-attribute
SERVICE_WORKER = 'ServiceWorker'
class-attribute
instance-attribute
SHARED_WORKER = 'SharedWorker'
class-attribute
instance-attribute
SPECULATION_RULES = 'SpeculationRules'
class-attribute
instance-attribute
STYLESHEET = 'Stylesheet'
class-attribute
instance-attribute
TRACK = 'Track'
class-attribute
instance-attribute
VIDEO = 'Video'
class-attribute
instance-attribute
WORKER = 'Worker'
class-attribute
instance-attribute
XML_HTTP_REQUEST = 'XMLHttpRequest'
class-attribute
instance-attribute
XSLT = 'XSLT'
class-attribute
instance-attribute
from_json(json)
classmethod
NavigatorUserAgentIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
location: typing.Optional[SourceCodeLocation] = None
class-attribute
instance-attribute
url: str
instance-attribute
__init__(url, location=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
PropertyRuleIssueDetails
dataclass
This issue warns about errors in property rules that lead to property registrations being ignored.
Source code in zendriver/cdp/audits.py
property_rule_issue_reason: PropertyRuleIssueReason
instance-attribute
property_value: typing.Optional[str] = None
class-attribute
instance-attribute
source_code_location: SourceCodeLocation
instance-attribute
__init__(source_code_location, property_rule_issue_reason, property_value=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
PropertyRuleIssueReason
Bases: Enum
Source code in zendriver/cdp/audits.py
INVALID_INHERITS = 'InvalidInherits'
class-attribute
instance-attribute
INVALID_INITIAL_VALUE = 'InvalidInitialValue'
class-attribute
instance-attribute
INVALID_NAME = 'InvalidName'
class-attribute
instance-attribute
INVALID_SYNTAX = 'InvalidSyntax'
class-attribute
instance-attribute
from_json(json)
classmethod
QuirksModeIssueDetails
dataclass
Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.
Source code in zendriver/cdp/audits.py
document_node_id: dom.BackendNodeId
instance-attribute
frame_id: page.FrameId
instance-attribute
is_limited_quirks_mode: bool
instance-attribute
loader_id: network.LoaderId
instance-attribute
url: str
instance-attribute
__init__(is_limited_quirks_mode, document_node_id, url, frame_id, loader_id)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
SharedArrayBufferIssueDetails
dataclass
Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.
Source code in zendriver/cdp/audits.py
is_warning: bool
instance-attribute
source_code_location: SourceCodeLocation
instance-attribute
type_: SharedArrayBufferIssueType
instance-attribute
__init__(source_code_location, is_warning, type_)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
SharedArrayBufferIssueType
Bases: Enum
Source code in zendriver/cdp/audits.py
CREATION_ISSUE = 'CreationIssue'
class-attribute
instance-attribute
TRANSFER_ISSUE = 'TransferIssue'
class-attribute
instance-attribute
from_json(json)
classmethod
SharedDictionaryError
Bases: Enum
Source code in zendriver/cdp/audits.py
USE_ERROR_CROSS_ORIGIN_NO_CORS_REQUEST = 'UseErrorCrossOriginNoCorsRequest'
class-attribute
instance-attribute
USE_ERROR_DICTIONARY_LOAD_FAILURE = 'UseErrorDictionaryLoadFailure'
class-attribute
instance-attribute
USE_ERROR_MATCHING_DICTIONARY_NOT_USED = 'UseErrorMatchingDictionaryNotUsed'
class-attribute
instance-attribute
USE_ERROR_UNEXPECTED_CONTENT_DICTIONARY_HEADER = 'UseErrorUnexpectedContentDictionaryHeader'
class-attribute
instance-attribute
WRITE_ERROR_COSS_ORIGIN_NO_CORS_REQUEST = 'WriteErrorCossOriginNoCorsRequest'
class-attribute
instance-attribute
WRITE_ERROR_DISALLOWED_BY_SETTINGS = 'WriteErrorDisallowedBySettings'
class-attribute
instance-attribute
WRITE_ERROR_EXPIRED_RESPONSE = 'WriteErrorExpiredResponse'
class-attribute
instance-attribute
WRITE_ERROR_FEATURE_DISABLED = 'WriteErrorFeatureDisabled'
class-attribute
instance-attribute
WRITE_ERROR_INSUFFICIENT_RESOURCES = 'WriteErrorInsufficientResources'
class-attribute
instance-attribute
WRITE_ERROR_INVALID_MATCH_FIELD = 'WriteErrorInvalidMatchField'
class-attribute
instance-attribute
WRITE_ERROR_INVALID_STRUCTURED_HEADER = 'WriteErrorInvalidStructuredHeader'
class-attribute
instance-attribute
WRITE_ERROR_NAVIGATION_REQUEST = 'WriteErrorNavigationRequest'
class-attribute
instance-attribute
WRITE_ERROR_NON_LIST_MATCH_DEST_FIELD = 'WriteErrorNonListMatchDestField'
class-attribute
instance-attribute
WRITE_ERROR_NON_SECURE_CONTEXT = 'WriteErrorNonSecureContext'
class-attribute
instance-attribute
WRITE_ERROR_NON_STRING_ID_FIELD = 'WriteErrorNonStringIdField'
class-attribute
instance-attribute
WRITE_ERROR_NON_STRING_IN_MATCH_DEST_LIST = 'WriteErrorNonStringInMatchDestList'
class-attribute
instance-attribute
WRITE_ERROR_NON_STRING_MATCH_FIELD = 'WriteErrorNonStringMatchField'
class-attribute
instance-attribute
WRITE_ERROR_NON_TOKEN_TYPE_FIELD = 'WriteErrorNonTokenTypeField'
class-attribute
instance-attribute
WRITE_ERROR_NO_MATCH_FIELD = 'WriteErrorNoMatchField'
class-attribute
instance-attribute
WRITE_ERROR_REQUEST_ABORTED = 'WriteErrorRequestAborted'
class-attribute
instance-attribute
WRITE_ERROR_SHUTTING_DOWN = 'WriteErrorShuttingDown'
class-attribute
instance-attribute
WRITE_ERROR_TOO_LONG_ID_FIELD = 'WriteErrorTooLongIdField'
class-attribute
instance-attribute
WRITE_ERROR_UNSUPPORTED_TYPE = 'WriteErrorUnsupportedType'
class-attribute
instance-attribute
from_json(json)
classmethod
SharedDictionaryIssueDetails
dataclass
Source code in zendriver/cdp/audits.py
request: AffectedRequest
instance-attribute
shared_dictionary_error: SharedDictionaryError
instance-attribute
__init__(shared_dictionary_error, request)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
SourceCodeLocation
dataclass
Source code in zendriver/cdp/audits.py
column_number: int
instance-attribute
line_number: int
instance-attribute
script_id: typing.Optional[runtime.ScriptId] = None
class-attribute
instance-attribute
url: str
instance-attribute
__init__(url, line_number, column_number, script_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
StyleSheetLoadingIssueReason
Bases: Enum
Source code in zendriver/cdp/audits.py
LATE_IMPORT_RULE = 'LateImportRule'
class-attribute
instance-attribute
REQUEST_FAILED = 'RequestFailed'
class-attribute
instance-attribute
from_json(json)
classmethod
StylesheetLoadingIssueDetails
dataclass
This issue warns when a referenced stylesheet couldn't be loaded.
Source code in zendriver/cdp/audits.py
failed_request_info: typing.Optional[FailedRequestInfo] = None
class-attribute
instance-attribute
source_code_location: SourceCodeLocation
instance-attribute
style_sheet_loading_issue_reason: StyleSheetLoadingIssueReason
instance-attribute
__init__(source_code_location, style_sheet_loading_issue_reason, failed_request_info=None)
from_json(json)
classmethod
Source code in zendriver/cdp/audits.py
to_json()
Source code in zendriver/cdp/audits.py
check_contrast(report_aaa=None)
Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
report_aaa
|
Optional[bool]
|
(Optional) Whether to report WCAG AAA level issues. Default is false. |
None
|
Source code in zendriver/cdp/audits.py
check_forms_issues()
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[GenericIssueDetails]]
|
|
Source code in zendriver/cdp/audits.py
disable()
Disables issues domain, prevents further issues from being reported to the client.
Source code in zendriver/cdp/audits.py
enable()
Enables issues domain, sends the issues collected so far to the client by means of the
issueAdded
event.
Source code in zendriver/cdp/audits.py
get_encoded_response(request_id, encoding, quality=None, size_only=None)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request_id
|
RequestId
|
Identifier of the network request to get content for. |
required |
encoding
|
str
|
The encoding to use. |
required |
quality
|
Optional[float]
|
(Optional) The quality of the encoding (0-1). (defaults to 1) |
None
|
size_only
|
Optional[bool]
|
(Optional) Whether to only return the size information (defaults to false). |
None
|
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[Optional[str], int, int]]
|
A tuple with the following items: 0. body - (Optional) The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON) 1. originalSize - Size before re-encoding. 2. encodedSize - Size after re-encoding. |