get_page_source: Read the HTML of a session

View source: R/global_actions.R

get_page_sourceR Documentation

Read the HTML of a session

Description

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(), scroll_to(), take_screenshot()

Examples


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

session <- minimal_selenider_session(html)

get_page_source()


selenider documentation built on April 3, 2025, 5:51 p.m.