Class Audits
java.lang.Object
org.openqa.selenium.devtools.v119.audits.Audits
Audits domain allows investigation of page violations and possible improvements.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<Void>
checkContrast
(Optional<Boolean> reportAAA) Runs the contrast check for the target page.static org.openqa.selenium.devtools.Command<List<GenericIssueDetails>>
Runs the form issues check for the target page.static org.openqa.selenium.devtools.Command<Void>
disable()
Disables issues domain, prevents further issues from being reported to the client.static org.openqa.selenium.devtools.Command<Void>
enable()
Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event.static org.openqa.selenium.devtools.Command<Audits.GetEncodedResponseResponse>
getEncodedResponse
(RequestId requestId, Audits.GetEncodedResponseEncoding encoding, Optional<Number> quality, Optional<Boolean> sizeOnly) Returns the response body and size if it were re-encoded with the specified settings.static org.openqa.selenium.devtools.Event<InspectorIssue>
-
Constructor Details
-
Audits
public Audits()
-
-
Method Details
-
getEncodedResponse
public static org.openqa.selenium.devtools.Command<Audits.GetEncodedResponseResponse> getEncodedResponse(RequestId requestId, Audits.GetEncodedResponseEncoding encoding, Optional<Number> quality, Optional<Boolean> sizeOnly) Returns the response body and size if it were re-encoded with the specified settings. Only applies to images. -
disable
Disables issues domain, prevents further issues from being reported to the client. -
enable
Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event. -
checkContrast
Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event. -
checkFormsIssues
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event. -
issueAdded
-