minimal_selenider_session {selenider}R Documentation

Create a session with custom HTML

Description

Create a selenider_session using custom HTML/JavaScript.

Usage

minimal_selenider_session(html, js = NULL, ..., .env = rlang::caller_env())

Arguments

html

A string to use as HTML. Can also be an xml2 object.

js

A string (or NULL) to use as JavaScript.

...

Passed into selenider_session().

.env

The environment in which the session will be used.

Details

The function works by combining html and js into a single string, then writing this to a temporary file (and opening it in the session's browser).

Value

A selenider_session object.

See Also

selenider_session()

Examples


session <- minimal_selenider_session("<p>Example</p>")


[Package selenider version 0.4.0 Index]