Skip to contents

Start a session

Global Actions

Actions on the entire page

back() forward()
Move back or forward in browsing history
current_url()
Get the URL of the current page
execute_js_fn() execute_js_expr()
Execute a JavaScript function
get_page_source()
Read the HTML of a session
open_url()
Open a URL
reload() refresh()
Reload the current page
take_screenshot()
Take a screenshot of the current page

Selecting elements

s() ss()
Select HTML elements
find_element()
Find a single HTML child element
find_elements()
Find multiple HTML child elements
elem_ancestors() elem_parent() elem_siblings() elem_children() elem_descendants()
Get the DOM family of an element
elem_filter() elem_find() `[`(<selenider_elements>) `[[`(<selenider_elements>)
Extract a subset of HTML elements

Properties

elem_attr() elem_attrs() elem_value()
Get attributes of an element
elem_css_property()
Get a CSS property of an element
elem_name()
Get the tag name of an element
elem_size() length(<selenider_elements>)
Get the number of elements in a collection
elem_text()
Get the text inside an element
elem_equal() `==`(<selenider_element>)
Are two elements equivalent?

Actions

elem_click() elem_double_click() elem_right_click()
Click an element
elem_hover() elem_focus()
Hover over an element
elem_scroll_to()
Scroll to an element
elem_select()
Select an HTML element
elem_set_value() elem_send_keys() elem_clear_value()
Set the value of an input
elem_submit()
Submit an element
keys
Special keys

Expectations

elem_expect() elem_wait_until()
Test one or more conditions on HTML elements
elem_expect_all() elem_wait_until_all()
Test conditions on multiple elements

Conditions

has_attr() attr_contains() has_value()
Does an element's attribute match a value?
has_css_property()
Does an element's css property match a value?
has_length() has_size() has_at_least()
Does a collection have a certain number of elements?
has_name()
Does an element have a tag name?
has_text() has_exact_text()
Does an element contain a pattern?
is_enabled() is_disabled()
Is an element enabled?
is_present() is_in_dom() is_absent()
Does an element exist?
is_visible() is_displayed() is_hidden() is_invisible()
Is an element visible?

Working with element collections

Combine, modify and iterate over groups of HTML elements

elem_flatten() c(<selenider_element>) c(<selenider_elements>)
Combine multiple HTML elements
as.list(<selenider_elements>)
Iterate over an element collection
find_each_element() find_all_elements()
Find HTML children from a collection

Other functions

elem_cache()
Force an element to be collected and stored
read_html.selenider_session() read_html.selenider_element()
Read a live HTML document
get_actual_element() get_actual_elements()
Get the element associated with a selenider element
minimal_selenider_session()
Create a session with custom HTML
selenider_available() skip_if_selenider_unavailable()
Check if selenider can be used
print(<selenider_element>) print(<selenider_elements>)
Print a live HTML element

Configuration

selenider-config
Selenider options

Deprecated functions

create_chromote_session() create_selenium_server() create_selenium_client() create_rselenium_client()
Deprecated functions
elem_flatmap() element_list()
Iterate over an element collection
print_lazy()
Print an element without fetching it