elem_css_property | R Documentation |
Get a CSS property of an element (e.g. "background-color"
).
Specifically, the computed style is returned, meaning that,
for example, widths and heights will be returned in pixels, and
colours will be returned as an RGB value.
elem_css_property(x, name, timeout = NULL)
x |
A |
name |
The name of the CSS property to get. |
timeout |
The time to wait for |
A string, or NULL
if the property does not exist.
Other properties:
elem_attr()
,
elem_name()
,
elem_size()
,
elem_text()
html <- "
<p style='visibility:hidden; color:red;'>Text</p>
"
session <- minimal_selenider_session(html)
s("p") |>
elem_css_property("visibility")
s("p") |>
elem_css_property("color")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.