Audits
======

Audits domain allows investigation of page violations and possible improvements.

*This CDP domain is experimental.*

.. module:: nodriver.cdp.audits

* 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.

.. autoclass:: AffectedCookie
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: AffectedRequest
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: AffectedFrame
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieExclusionReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieWarningReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieOperation
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: InsightType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieIssueInsight
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PerformanceIssueType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PerformanceIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: MixedContentResolutionStatus
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: MixedContentResourceType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: MixedContentIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: BlockedByResponseReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: BlockedByResponseIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: HeavyAdResolutionStatus
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: HeavyAdReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: HeavyAdIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ContentSecurityPolicyViolationType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SourceCodeLocation
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ContentSecurityPolicyIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SharedArrayBufferIssueType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SharedArrayBufferIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CorsIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: AttributionReportingIssueType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SharedDictionaryError
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SRIMessageSignatureError
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: UnencodedDigestError
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ConnectionAllowlistError
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: AttributionReportingIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: QuirksModeIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: NavigatorUserAgentIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SharedDictionaryIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SRIMessageSignatureIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: UnencodedDigestIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ConnectionAllowlistIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: GenericIssueErrorType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: GenericIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: DeprecationIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: BounceTrackingIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: CookieDeprecationMetadataIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ClientHintIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: FederatedAuthRequestIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: FederatedAuthRequestIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: FederatedAuthUserInfoRequestIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: FederatedAuthUserInfoRequestIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ClientHintIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: FailedRequestInfo
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PartitioningBlobURLInfo
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PartitioningBlobURLIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ElementAccessibilityIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ElementAccessibilityIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: StyleSheetLoadingIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: StylesheetLoadingIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PropertyRuleIssueReason
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PropertyRuleIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: UserReidentificationIssueType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: UserReidentificationIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PermissionElementIssueType
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PermissionElementIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SelectivePermissionsInterventionIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: InspectorIssueCode
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: InspectorIssueDetails
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: IssueId
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: InspectorIssue
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

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
:ref:`Getting Started: Commands <getting-started-commands>`.

.. autofunction:: check_forms_issues

.. autofunction:: disable

.. autofunction:: enable

.. autofunction:: get_encoded_response

Events
------

Generally, you do not need to instantiate CDP events
yourself. Instead, the API creates events for you and then
you use the event's attributes.

.. autoclass:: IssueAdded
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json
