Class BrowserJavascriptExecInput
-
- All Implemented Interfaces:
public final class BrowserJavascriptExecInputExecute JavaScript in the page context and return the value of the last expression. The code runs with access to the DOM,
window, and page variables. Write the expression you want evaluated — do NOT usereturn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserJavascriptExecInput.BuilderA builder for BrowserJavascriptExecInput.
-
Method Summary
Modifier and Type Method Description final Stringtext()JavaScript to execute in the page context. final Optional<String>tabId()Tab to act on. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<String>_tabId()Returns the raw JSON value of tabId. final Map<String, JsonValue>_additionalProperties()final BrowserJavascriptExecInput.BuildertoBuilder()final BrowserJavascriptExecInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserJavascriptExecInput.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserJavascriptExecInput. final static BrowserJavascriptExecInputof(String text)Returns an immutable instance of BrowserJavascriptExecInput with the required text set to the given value. -
-
Method Detail
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_tabId
final JsonField<String> _tabId()
Returns the raw JSON value of tabId.
Unlike tabId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserJavascriptExecInput.Builder toBuilder()
-
validate
final BrowserJavascriptExecInput validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BrowserJavascriptExecInput.Builder builder()
Returns a mutable builder for constructing an instance of BrowserJavascriptExecInput.
The following fields are required:
.text()
-
of
final static BrowserJavascriptExecInput of(String text)
Returns an immutable instance of BrowserJavascriptExecInput with the required text set to the given value.
-
-
-
-