xml2::read_html() can be used on a selenider session to read the HTML of
the entire page, or on a selenider element to get the HTML of that element.
Arguments
- x
A
selenider_session/selenider_elementobject.- encoding, ..., options
Passed into
xml2::read_html().- timeout
How long to wait for
xto exist in the DOM before throwing an error.- outer
Whether to read the inner (all children of the current element) or outer (including the element itself) HTML of
x.
Value
read_html() returns an XML document. Note that HTML will always be wrapped
in a <html> and <body> tag, if it isn't already.