Package: selenider 0.4.0.9000

selenider: Concise, Lazy and Reliable Wrapper for 'chromote' and 'selenium'

A user-friendly wrapper for web automation, using either 'chromote' or 'selenium'. Provides a simple and consistent API to make web scraping and testing scripts easy to write and understand. Elements are lazy, and automatically wait for the website to be valid, resulting in reliable and reproducible code, with no visible impact on the experience of the programmer.

Authors:Ashby Thorpe [aut, cre, cph]

selenider_0.4.0.9000.tar.gz
selenider_0.4.0.9000.zip(r-4.5)selenider_0.4.0.9000.zip(r-4.4)selenider_0.4.0.9000.zip(r-4.3)
selenider_0.4.0.9000.tgz(r-4.4-any)selenider_0.4.0.9000.tgz(r-4.3-any)
selenider_0.4.0.9000.tar.gz(r-4.5-noble)selenider_0.4.0.9000.tar.gz(r-4.4-noble)
selenider_0.4.0.9000.tgz(r-4.4-emscripten)selenider_0.4.0.9000.tgz(r-4.3-emscripten)
selenider.pdf |selenider.html
selenider/json (API)
NEWS

# Install 'selenider' in R:
install.packages('selenider', repos = c('https://ashbythorpe.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ashbythorpe/selenider/issues

Datasets:

On CRAN:

web-scraping

7.25 score 34 stars 22 scripts 804 downloads 91 exports 12 dependencies

Last updated 1 months agofrom:61f8d0cf56. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winOKNov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:as_pretty_dtattr_containsbackchromote_optionsclose_sessioncreate_chromote_sessioncreate_rselenium_clientcreate_selenium_clientcreate_selenium_servercurrent_urlelem_ancestorselem_attrelem_attrselem_cacheelem_childrenelem_clear_valueelem_clickelem_css_propertyelem_descendantselem_double_clickelem_equalelem_expectelem_expect_allelem_filterelem_findelem_flatmapelem_flattenelem_focuselem_hoverelem_nameelem_parentelem_right_clickelem_scroll_toelem_selectelem_send_keyselem_set_valueelem_siblingselem_sizeelem_submitelem_textelem_valueelem_wait_untilelem_wait_until_allelement_listexecute_js_exprexecute_js_fnfind_all_elementsfind_each_elementfind_elementfind_elementsforwardget_actual_elementget_actual_elementsget_page_sourceget_sessionhas_at_leasthas_attrhas_css_propertyhas_exact_texthas_lengthhas_namehas_sizehas_texthas_valueis_absentis_disabledis_displayedis_enabledis_hiddenis_in_domis_invisibleis_presentis_visiblelocal_sessionminimal_selenider_sessionopen_urlprint_lazyrefreshreloadrselenium_client_optionssselenider_availableselenider_sessionselenium_client_optionsselenium_optionsselenium_server_optionsskip_if_selenider_unavailablesstake_screenshotwdman_server_optionswith_session

Dependencies:clicorocurlgluelifecycleprettyunitsprocessxpsR6rlangvctrswithr

Advanced usage of selenider

Rendered fromadvanced-usage.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-10-21
Started: 2024-10-21

Getting started with selenider

Rendered fromselenider.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-10-21
Started: 2023-09-13

selenider and rvest

Rendered fromwith-rvest.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2023-09-18
Started: 2023-09-16

Unit testing

Rendered fromunit-testing.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-01-01
Started: 2023-09-15

Readme and manuals

Help Manual

Help pageTopics
Iterate over an element collectionas.list.selenider_elements
Move back or forward in browsing historyback forward
Driver optionschromote_options selenium_client_options selenium_options selenium_server_options
Close a session objectclose_session
Deprecated functionscreate_chromote_session create_rselenium_client create_selenium_client create_selenium_server
Get the URL of the current pagecurrent_url
Get the DOM family of an elementelem_ancestors elem_children elem_descendants elem_parent elem_siblings
Get attributes of an elementelem_attr elem_attrs elem_value
Force an element to be collected and storedelem_cache
Click an elementelem_click elem_double_click elem_right_click
Get a CSS property of an elementelem_css_property
Are two elements equivalent?==.selenider_element elem_equal
Test one or more conditions on HTML elementselem_expect elem_wait_until
Test conditions on multiple elementselem_expect_all elem_wait_until_all
Extract a subset of HTML elementselem_filter elem_find [.selenider_elements [[.selenider_elements
Iterate over an element collectionelement_list elem_flatmap
Combine multiple HTML elementsc.selenider_element c.selenider_elements elem_flatten
Hover over an elementelem_focus elem_hover
Get the tag name of an elementelem_name
Scroll to an elementelem_scroll_to
Select an HTML elementelem_select
Set the value of an inputelem_clear_value elem_send_keys elem_set_value
Get the number of elements in a collectionelem_size length.selenider_elements
Submit an elementelem_submit
Get the text inside an elementelem_text
Execute a JavaScript functionexecute_js_expr execute_js_fn
Find HTML children from a collectionfind_all_elements find_each_element
Find a single HTML child elementfind_element find_element.selenider_element find_element.selenider_session
Find multiple HTML child elementsfind_elements find_elements.selenider_element find_elements.selenider_session
Get the element associated with a selenider elementget_actual_element get_actual_elements
Read the HTML of a sessionget_page_source
Get or set the local selenider sessionget_session local_session with_session
Does an element's attribute match a value?attr_contains has_attr has_value
Does an element's css property match a value?has_css_property
Does a collection have a certain number of elements?has_at_least has_length has_size
Does an element have a tag name?has_name
Does an element contain a pattern?has_exact_text has_text
Is an element enabled?is_disabled is_enabled
Does an element exist?is_absent is_in_dom is_present
Is an element visible?is_displayed is_hidden is_invisible is_visible
Special keyskeys
Create a session with custom HTMLminimal_selenider_session
Open a URLopen_url
Print an element without fetching itprint_lazy print_lazy.selenider_element print_lazy.selenider_elements
Print a live HTML elementprint.selenider_element print.selenider_elements
Read a live HTML documentread_html.selenider_element read_html.selenider_session
Reload the current pagerefresh reload
Select HTML elementss ss
Check if selenider can be usedselenider_available skip_if_selenider_unavailable
Start a sessionselenider_session
Selenider optionsselenider-config
Take a screenshot of the current pagetake_screenshot
RSelenium optionsrselenium_client_options wdman_server_options