execute_script: Inject a snippet of JavaScript

View source: R/utils-selenium.R

execute_scriptR Documentation

Inject a snippet of JavaScript

Description

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 is returned to the client. The script argument defines the script to execute in the form of a function body.

Usage

execute_script(client, script, args)

Arguments

client

RSelenium client.

script

String with the JavaScript to be executed.

args

List of arguments for the script.

Value

Returns the status of the action.


villegar/scrappy documentation built on Jan. 25, 2024, 4:38 p.m.