print.selenider_element {selenider} | R Documentation |
Print a live HTML element
Description
Display an element or collection of elements by fetching the elements and displaying their HTML contents.
Usage
## S3 method for class 'selenider_element'
print(x, width = getOption("width"), ..., timeout = NULL)
## S3 method for class 'selenider_elements'
print(x, width = getOption("width"), ..., n = 20, timeout = NULL)
Arguments
x |
A |
width |
The maximum width of the output. |
... |
Not used. |
timeout |
How long to wait for |
n |
The maximum number of elements to print. |
Value
x
, invisibly.
Examples
html <- "
<div>
<p>Text 1</p>
<p>Text 2</p>
<p>Text 3</p>
<p>Text 4</p>
</div>
"
session <- minimal_selenider_session(html)
print(s("div"))
print(ss("p"))
print(ss("p"), n = 3)
[Package selenider version 0.4.0 Index]