Skip to contents

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.

Value

A selenider_session object.

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).

Examples

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