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:
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')) |
Bug tracker:https://github.com/ashbythorpe/selenider/issues
- keys - Special keys
Last updated 16 days agofrom:61f8d0cf56. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 21 2024 |
R-4.5-win | OK | Oct 21 2024 |
R-4.5-linux | OK | Oct 21 2024 |
R-4.4-win | OK | Oct 21 2024 |
R-4.4-mac | OK | Oct 21 2024 |
R-4.3-win | OK | Oct 21 2024 |
R-4.3-mac | OK | Oct 21 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.Rmd
usingknitr::rmarkdown
on Oct 21 2024.Last update: 2024-10-21
Started: 2024-10-21
Getting started with selenider
Rendered fromselenider.Rmd
usingknitr::rmarkdown
on Oct 21 2024.Last update: 2024-10-21
Started: 2023-09-13
selenider and rvest
Rendered fromwith-rvest.Rmd
usingknitr::rmarkdown
on Oct 21 2024.Last update: 2023-09-18
Started: 2023-09-16
Unit testing
Rendered fromunit-testing.Rmd
usingknitr::rmarkdown
on Oct 21 2024.Last update: 2024-01-01
Started: 2023-09-15
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Iterate over an element collection | as.list.selenider_elements |
Move back or forward in browsing history | back forward |
Driver options | chromote_options selenium_client_options selenium_options selenium_server_options |
Close a session object | close_session |
Deprecated functions | create_chromote_session create_rselenium_client create_selenium_client create_selenium_server |
Get the URL of the current page | current_url |
Get the DOM family of an element | elem_ancestors elem_children elem_descendants elem_parent elem_siblings |
Get attributes of an element | elem_attr elem_attrs elem_value |
Force an element to be collected and stored | elem_cache |
Click an element | elem_click elem_double_click elem_right_click |
Get a CSS property of an element | elem_css_property |
Are two elements equivalent? | ==.selenider_element elem_equal |
Test one or more conditions on HTML elements | elem_expect elem_wait_until |
Test conditions on multiple elements | elem_expect_all elem_wait_until_all |
Extract a subset of HTML elements | elem_filter elem_find [.selenider_elements [[.selenider_elements |
Iterate over an element collection | element_list elem_flatmap |
Combine multiple HTML elements | c.selenider_element c.selenider_elements elem_flatten |
Hover over an element | elem_focus elem_hover |
Get the tag name of an element | elem_name |
Scroll to an element | elem_scroll_to |
Select an HTML element | elem_select |
Set the value of an input | elem_clear_value elem_send_keys elem_set_value |
Get the number of elements in a collection | elem_size length.selenider_elements |
Submit an element | elem_submit |
Get the text inside an element | elem_text |
Execute a JavaScript function | execute_js_expr execute_js_fn |
Find HTML children from a collection | find_all_elements find_each_element |
Find a single HTML child element | find_element find_element.selenider_element find_element.selenider_session |
Find multiple HTML child elements | find_elements find_elements.selenider_element find_elements.selenider_session |
Get the element associated with a selenider element | get_actual_element get_actual_elements |
Read the HTML of a session | get_page_source |
Get or set the local selenider session | get_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 keys | keys |
Create a session with custom HTML | minimal_selenider_session |
Open a URL | open_url |
Print an element without fetching it | print_lazy print_lazy.selenider_element print_lazy.selenider_elements |
Print a live HTML element | print.selenider_element print.selenider_elements |
Read a live HTML document | read_html.selenider_element read_html.selenider_session |
Reload the current page | refresh reload |
Select HTML elements | s ss |
Check if selenider can be used | selenider_available skip_if_selenider_unavailable |
Start a session | selenider_session |
Selenider options | selenider-config |
Take a screenshot of the current page | take_screenshot |
RSelenium options | rselenium_client_options wdman_server_options |