Skip to contents

Check that the CSS property (e.g. "background-color") of an element matches a value.

Usage

has_css_property(x, property, value)

Arguments

x

A selenider_element object.

property

The name of the CSS property

value

The value of the attribute.

Value

A boolean value: TRUE or FALSE.

See also

Other conditions: has_attr(), has_length(), has_name(), has_text(), is_enabled(), is_present(), is_visible()

Examples

html <- "
<div style='display:none;'></div>
"
session <- minimal_selenider_session(html)

has_css_property(s("div"), "display", "none")