Changelog
Source:NEWS.md
selenium 0.2.0
CRAN release: 2025-06-18
-
JAVA_HOMEis now respected when finding thejavaexecutable. -
selenium_server()now returns aSeleniumServerobject, which exposes thehostandportfields. This allowswait_for_server()to work without having to pass in thehostandportarguments. -
selenium_server()no longer saves the logs of the Selenium server process by default, as this would cause errors when creating lots of sessions. To enable logging, set thestdoutandstderrarguments to"|", and then use$read_output()and$read_error()to read the output/error, as before. -
SeleniumSession$close()no longer throws an error if you use it twice. Instead, it returns a boolean that indicates if the session was already closed.
selenium 0.1.4
CRAN release: 2024-09-23
- Added
chrome_options(),firefox_options()andedge_options()to help with thecapabilitiesargument inSeleniumSession$new(). The documentation there includes several links that document the options available for each browser, along with a few examples. - The
errorargument inwait_for_selenium_available()now defaults toTRUE. This means that the function will throw an error if a Selenium server is not available by default. - Added
wait_for_server(), a version ofwait_for_selenium_available()that gives more detailed error messages by reading the logs of a server process created usingselenium_server(). - Fixed a bug in
selenium_server()where fetching the latest version didn’t work when Selenium was preparing to release a new version.
selenium 0.1.3
CRAN release: 2023-11-28
- The
browser,hostandportfields can now be used to access the browser, host and port of aSeleniumSessionobject. - All web requests now have a 20 second timeout by default, meaning that if a response is not received within 20 seconds, an error is thrown. This stops requests running indefinitely, and can be customised with the
timeoutargument to each method. - Previously,
selenium_server()could error if called too many times withversion = "latest". This is because a GitHub request is made to access the latest version, which can cause GitHub’s rate limits to be exceeded. This update takes two steps to stop this from happening:- The latest version, when fetched, is cached in the current R session, allowing it to be re-used.
-
gitcredsis used, if available, to authenticate GitHub requests, increasing the rate limit.
-
selenium_server()passes in"|"tostdoutandstderr, instead of exposing them as user arguments. This allows the output/error to be read using$read_output()and$read_error().
selenium 0.1.1
- Added
pathargument toselenium_server(), allowing the file to be saved in a custom path. - Removed
\dontrun{}for one example for CRAN resubmission.