Interface InjectCssCallback.Response
- Enclosing interface:
- InjectCssCallback
public static interface InjectCssCallback.Response
A response of the
InjectCssCallback
.-
Method Summary
Modifier and TypeMethodDescriptionstatic InjectCssCallback.Response
Injects the givencustomStyleSheet
string that represents a custom style sheet (CSS) into the document that is loaded in this browser instance.static InjectCssCallback.Response
proceed()
Notifies the browser that it can proceed without injecting a custom style sheet.
-
Method Details
-
inject
Injects the givencustomStyleSheet
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 givencustomStyleSheet
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
- whencustomStyleSheet
is empty or blank
-
proceed
Notifies the browser that it can proceed without injecting a custom style sheet.
-