Checks if the displayed text of the element contains the given text. The text parameter is turned into an RegExp object before performing the check.
false when the element can be found in the DOM or not.
Retrieves the value of an element attribute.
option elements within the queried element and resolves to an array with all visible texts of the options.
If the parameter
value is set to
"value" it will resolve to an array with all option values.
Retrieves the text content of the selected
option within the
Retrieves the selection from a user in the current document as a
This is most likely the text what will set to the clipboard if a user
copies the selection.
Checks if the element has an attribute
checked. This is useful for checkboxes or radio inputs.
Checks if an element is enabled. An element is considered as enabled when it has no
disabled attribute set.
Returns a tuple describing an element's location, in pixels relative to the document element.
Styles in HTML elements are calculated by the browser based on various CSS rules.
_style returns the computed style that is finally applicable to the element.
If the element inherits the named style from
its parent, the parent will be queried for its value. Where possible,
color values will be converted to their hex representation (e.g.
rgb(0, 255, 0)).
Accessing the style directly as an attribute will not return a computed style.
Warning: A proper assertion will be difficult as some browser may interpret it differently.
Retrieves the current text content of the documents