Skip to contents

Uses xml2::read_html() to read the page source of the session

Usage

get_page_source(session = NULL, ...)

Arguments

session

Optionally, a selenider_session object.

...

Passed into xml2::read_html()

Value

An XML document.

See also

Other global actions: back(), current_url(), execute_js_fn(), open_url(), reload(), take_screenshot()

Examples

html <- "
<p>Example text</p>
"

session <- minimal_selenider_session(html)

get_page_source()