public interface ExecutesDriverScript extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default ScriptValue |
executeDriverScript(java.lang.String script)
Run a set of scripts in scope of the current session with default options.
|
default ScriptValue |
executeDriverScript(java.lang.String script,
ScriptOptions options)
Run a set of scripts in scope of the current session.
|
execute, execute
default ScriptValue executeDriverScript(java.lang.String script, @Nullable ScriptOptions options)
script
- the web driver script to execute (it should
be a valid webdriverio code snippet by default
unless another option is provided)options
- additional scripting optionsorg.openqa.selenium.WebDriverException
- if there was a failure while executing the scriptdefault ScriptValue executeDriverScript(java.lang.String script)
script
- the web driver script to execute (it should
be a valid webdriverio code snippet)