Table of Contents

Interface IAudits

Namespace
Selenium.WebDriver.BiDi.Cdp.Audits
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

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

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

requestId RequestId

Identifier of the network request to get content for.

encoding string

The encoding to use.

quality double?

The quality of the encoding (0-1). (defaults to 1)

sizeOnly bool?

Whether to only return the size information (defaults to false).

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<GetEncodedResponseResult>

A task representing the asynchronous operation, containing a GetEncodedResponseResult.