Execute JavaScript asynchronously on browser.

Share:

Description

executeScriptOld This function uses the old JSONwireprotocol end points. Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script will be returned.

Usage

1
executeScriptOld(remDr, script, args = list(), replace = TRUE, ...)

Arguments

remDr

An object of class "rDriver". A remote driver object see remoteDr.

script

character: The script to inject.

args

The arguments of the script as a list.

replace

logical: If TRUE any elements identify as web Elements are converted to such.

...

Additonal function arguments - Currently passes the retry argument.

Value

If replace is TRUE parses the response from the server for web Elements and converts as such. Otherwise the content returned is assummed to be a simple list.

See Also

Other oldMethods functions: acceptAlertOld, dismissAlertOld, executeAsyncScriptOld, getAlertTextOld, getWindowHandleOld, getWindowHandlesOld, getWindowPositionOld, getWindowSizeOld, maximizeWindowOld, sendAlertTextOld, setWindowPositionOld, setWindowSizeOld

Examples

1
2
3
4
## Not run: 
# functions in this group are using the old JSONwireprotocol end points

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.