Class Audits
- java.lang.Object
-
- org.openqa.selenium.devtools.audits.Audits
-
@Beta public class Audits extends java.lang.Object
Audits domain allows investigation of page violations and possible improvements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Audits.GetEncodedResponseEncoding
static class
Audits.GetEncodedResponseResponse
-
Constructor Summary
Constructors Constructor Description Audits()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Command<java.lang.Void>
disable()
Disables issues domain, prevents further issues from being reported to the client.static Command<java.lang.Void>
enable()
Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event.static Command<Audits.GetEncodedResponseResponse>
getEncodedResponse(RequestId requestId, Audits.GetEncodedResponseEncoding encoding, java.util.Optional<java.lang.Number> quality, java.util.Optional<java.lang.Boolean> sizeOnly)
Returns the response body and size if it were re-encoded with the specified settings.static Event<InspectorIssue>
issueAdded()
-
-
-
Method Detail
-
getEncodedResponse
public static Command<Audits.GetEncodedResponseResponse> getEncodedResponse(RequestId requestId, Audits.GetEncodedResponseEncoding encoding, java.util.Optional<java.lang.Number> quality, java.util.Optional<java.lang.Boolean> sizeOnly)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
-
disable
public static Command<java.lang.Void> disable()
Disables issues domain, prevents further issues from being reported to the client.
-
enable
public static Command<java.lang.Void> enable()
Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event.
-
issueAdded
public static Event<InspectorIssue> issueAdded()
-
-