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.
Arguments
- x
A
selenider_element
object.- name
The name of the CSS property to get.
- timeout
The time to wait for
x
to exist.
Examples
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")