selenider 0.3.0
-
Moved all session-specific options in
selenider_session()to an option object
(eitherchromote_options()orselenium_options()), which can be passed to
the newoptionsargument ofselenider_session(). This means that a few
arguments toselenider_session()have been deprecated and moved into
option objects. Old code should be changed as follows:selenider_session(view = TRUE)should be changed to:
selenider_session(options = chromote_options(view = TRUE))selenider_session(selenium_manager = FALSE)should be changed to:
selenider_session( options = selenium_options(server_options = wdman_server_options()) )selenider_session(quiet = FALSE)should be changed to:
selenider_session(options = selenium_options( server_options = selenium_server_options(verbose = TRUE)) ))
Additionally,
create_chromote_session(),create_selenium_server(), and
create_selenium_client()are now deprecated. This is because you now
have access to all the options of these functions in theoptionsargument
ofselenider_session(). -
Improved reliability of functions when they use chromote, with help of code
from the puppeteer project. Most
notably:elem_click()and friends now work if part of the element is not visible.elem_value()andelem_set_value()now work on a wider variety of
elements, including<select>elements.
-
elem_focus()is a new function that allows you to focus an element. -
selenider_session()now uses thewithr.hook_sourceoption to ensure
thatwithrworks insidesource().