Interface InjectCssCallback.Response

Enclosing interface:
InjectCssCallback

public static interface InjectCssCallback.Response
A response of the InjectCssCallback.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    inject(String customStyleSheet)
    Injects the given customStyleSheet string that represents a custom style sheet (CSS) into the document that is loaded in this browser instance.
    Notifies the browser that it can proceed without injecting a custom style sheet.
  • Method Details

    • inject

      static InjectCssCallback.Response inject(String customStyleSheet)
      Injects the given customStyleSheet string that represents a custom style sheet (CSS) into the document that is loaded in this browser instance.

      If CSS property defined in the given customStyleSheet string already exists on the loaded HTML document, then the existing CSS property won't be overridden. The CSS properties defined in the given customStyleSheet string will be applied only if these properties aren't defined on the loaded document.

      Parameters:
      customStyleSheet - CSS code that will be injected into the document
      Throws:
      IllegalArgumentException - when customStyleSheet is empty or blank
    • proceed

      static InjectCssCallback.Response proceed()
      Notifies the browser that it can proceed without injecting a custom style sheet.