public static interface InjectCssCallback.Response
InjectCssCallback
.Modifier and Type | Method and Description |
---|---|
static InjectCssCallback.Response |
inject(java.lang.String customStyleSheet)
Injects the given
customStyleSheet 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.
|
static InjectCssCallback.Response inject(java.lang.String customStyleSheet)
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.
customStyleSheet
- CSS code that will be injected into the documentjava.lang.IllegalArgumentException
- when customStyleSheet
is empty or blankstatic InjectCssCallback.Response proceed()