elem_size | R Documentation |
Get the number of elements in a HTML element collection, waiting for the parent elements (if any) to exist before returning a value.
length()
and elem_size()
can be used interchangeably, the only
difference being that elem_size()
allows you to specify a timeout.
elem_size(x, timeout = NULL)
## S3 method for class 'selenider_elements'
length(x)
x |
A |
timeout |
The time to wait for the parent of |
An integer representing the number of elements in the collection.
Other properties:
elem_attr()
,
elem_css_property()
,
elem_name()
,
elem_text()
html <- "
<div></div>
<div></div>
<div></div>
<div></div>
"
session <- minimal_selenider_session(html)
ss("div") |>
length()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.