SeleniumLibrary 6.1.0
SeleniumLibrary 6.1.0 is a new release with some enhancements around timeouts, broadening edge support and removing deprecated Opera support, and bug fixes.
SeleniumLibrary 6.1.0 was released on Wednesday May 3, 2023. SeleniumLibrary supports Python 3.7+, Selenium 4.0+ and Robot Framework 4.1.3 or higher.
Most important enhancements
Set Page Load Timeout
The ability to set the page load timeout value was added (#1535). This can be done on the Library import. For example, one could set it to ten seconds, as in,
*** Setting ***
Library SeleniumLibrary page_load_timeout=10 seconds
In addition there are two addition keywords (Set Selenium Page Load Timeout and Get Selenium Page Load Timeout) which allow for changing the page load timeout within a script. See the keyword documentation for more information.
Duration of mouse movements within Action Chains
Actions chains allow for building up a series of interactions including mouse movements. As to simulate an actual user moving the mouse a default duration (250ms) for pointer movements is set. This change (#1768) allows for the action chain duration to be modified. This can be done on the Library import, as in,
*** Setting ***
Library SeleniumLibrary action_chain_delay=100 milliseconds
or with the setter keyword Set Action Chain Delay. In addition one can get the current duration with the new keyword Get Action Chain Delay. See the keyword documentation for more information.
Timeout documentation updated
The keyword documentation around timeouts was enhanced (#1738) to clarify what the default timeout is and that the default is used if None is specified. The changes are, as shown in italics here,
The default timeout these keywords use can be set globally either by using the Set Selenium Timeout keyword or with the timeout argument when importing the library. If no default timeout is set globally, the default is 5 seconds. If None is specified for the timeout argument in the keywords, the default is used. See time format below for supported timeout syntax.
Edge webdriver under Linux
The executable path to the edge browser has been changed (#1698) so as to support both Windows and Linux/Unix/MacOS OSes. One should not notice any difference under Windows but under Linux/*nix one will no longer get an error message saying the Windows executable is missing.
Upcoming Deprecation of Selenium2Library
Please Take Note - The SeleniumLibrary Team will be deprecating and removing the Selenium2Library package in an upcoming release. When the underlying Selenium project transitioned, over six years ago, from distinguishing between the "old" selenium (Selenium 1) and the "new" WebDriver Selenium 2 into a numerically increasing versioning, this project decided to use the original SeleniumLibrary package name. As a convenience the Selenium2Library package was made a wrapper around the SeleniumLibrary package. Due to the issues around upgrading packages and the simple passage of time, it is time to deprecate and remove the Selenium2Library package.
If you are still installing the Selenium2Libary package please transition over, as soon as possible, to installing the SeleniumLibrary package instead.
See full details in release notes