public class ScriptOptions
extends java.lang.Object
| Constructor and Description |
|---|
ScriptOptions() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
build()
Builds a values map for further usage in HTTP requests to Appium.
|
ScriptOptions |
withScriptType(ScriptType type)
Sets the script type.
|
ScriptOptions |
withTimeout(long timeoutMs)
Sets the script execution timeout.
|
public ScriptOptions withScriptType(ScriptType type)
type - the actual script typepublic ScriptOptions withTimeout(long timeoutMs)
timeoutMs - the timeout in millisecondspublic java.util.Map<java.lang.String,java.lang.Object> build()