Skip to main content
Note

Methods are listed as name(arguments), called on a BaseCase as sb.name(...).await?. The argument names, the selector syntax and the return types are explained in Reading the API reference.

Queries#

MethodDescription
is_element_present(selector)Returns true if in DOM.
is_element_visible(selector)Returns true if visible.
is_element_enabled(selector)Returns true if enabled.
is_selected(selector)Returns true if the element is selected.
is_text_visible(text, selector)Returns true if text visible.
get_text(selector)Returns element text.
get_attribute(selector, attr)Returns attribute value.
get_property(selector, prop)Returns property value.
get_shadow_root(selector)Returns the shadow root.
find_element(selector)Returns a WebElement handle.
find_elements(selector)Returns all matching WebElement handles.
get_unique_links()Returns unique href values from the page.
get_all_links()Returns all href values from the page.
get_link_status_code(url)Returns the HTTP status code for url.