Interface IAudits
Audits domain allows investigation of page violations and possible improvements.
[Experimental("BIDICDP001")]
public interface IAudits
Properties
IssueAdded
IEventSource<IssueAddedEventArgs> IssueAdded { get; }
Property Value
- IEventSource<IssueAddedEventArgs>
Remarks
Event args (IssueAddedEventArgs):
- Issue
Methods
CheckFormsIssuesAsync(string?, CancellationToken)
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
Task<CheckFormsIssuesResult> CheckFormsIssuesAsync(string? session = null, CancellationToken cancellationToken = default)
Parameters
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<CheckFormsIssuesResult>
A task representing the asynchronous operation, containing a CheckFormsIssuesResult.
DisableAsync(string?, CancellationToken)
Disables issues domain, prevents further issues from being reported to the client.
Task<DisableResult> DisableAsync(string? session = null, CancellationToken cancellationToken = default)
Parameters
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DisableResult>
A task representing the asynchronous operation, containing a DisableResult.
EnableAsync(string?, CancellationToken)
Enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
Task<EnableResult> EnableAsync(string? session = null, CancellationToken cancellationToken = default)
Parameters
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<EnableResult>
A task representing the asynchronous operation, containing a EnableResult.
GetEncodedResponseAsync(RequestId, string, double?, bool?, string?, CancellationToken)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Task<GetEncodedResponseResult> GetEncodedResponseAsync(RequestId requestId, string encoding, double? quality = null, bool? sizeOnly = null, string? session = null, CancellationToken cancellationToken = default)
Parameters
requestIdRequestIdIdentifier of the network request to get content for.
encodingstringThe encoding to use.
qualitydouble?The quality of the encoding (0-1). (defaults to 1)
sizeOnlybool?Whether to only return the size information (defaults to false).
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<GetEncodedResponseResult>
A task representing the asynchronous operation, containing a GetEncodedResponseResult.