Class Audits


  • @Beta
    public class Audits
    extends java.lang.Object
    Audits domain allows investigation of page violations and possible improvements.
    • Constructor Summary

      Constructors 
      Constructor Description
      Audits()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.devtools.Command<java.lang.Void> checkContrast​(java.util.Optional<java.lang.Boolean> reportAAA)
      Runs the contrast check for the target page.
      static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
      Disables issues domain, prevents further issues from being reported to the client.
      static org.openqa.selenium.devtools.Command<java.lang.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, 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 org.openqa.selenium.devtools.Event<InspectorIssue> issueAdded()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Audits

        public Audits()
    • Method Detail

      • getEncodedResponse

        public static org.openqa.selenium.devtools.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 org.openqa.selenium.devtools.Command<java.lang.Void> disable()
        Disables issues domain, prevents further issues from being reported to the client.
      • enable

        public static org.openqa.selenium.devtools.Command<java.lang.Void> enable()
        Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event.
      • checkContrast

        public static org.openqa.selenium.devtools.Command<java.lang.Void> checkContrast​(java.util.Optional<java.lang.Boolean> reportAAA)
        Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
      • issueAdded

        public static org.openqa.selenium.devtools.Event<InspectorIssue> issueAdded()