Skip to content

SeleniumLibrary 6.3.0

Compare
Choose a tag to compare
@emanlove emanlove released this 19 Apr 22:27
· 127 commits to master since this release

SeleniumLibrary 6.3.0 is a new release with enhancements including minimizing browser window, waiting on expected conditions, getting element attribute or properties and bug fixes. SeleniumLibrary supports Python 3.8 through 3.11, Selenium 4.14.0 through 4.19.0 and Robot Framework 5.0.1, 6.1.1 and 7.0.

Most important enhancements

Added Minimize Browser Window keyword (#1741)
New keyword which minimizes the current browser window.

Add keywords to fetch differentiated element Attribute or Property (#1822)
The older Get Element Attribute keyword uses the Selenium getAttribute() method which, as [this SauceLabs article (https://saucelabs.com/resources/blog/selenium-4-new-element-attribute-and-property-methods) describes "did not actually retrieve the Attribute value." Instead it "figured out what the user was most likely interested in between the Attribute value and the Property values and returned it." This would mean sometimes it might return an unexpected result. Selenium 4 introduced newer methods which returns either the attribute or the property as specifically asked for.

It is recommend that one transition to these newer Get DOM Attribute and Get Property keywords.

Incorporate the expected conditions of Selenium (#1827)
A new keyword that allows for one to wait on an expected condition.

Remove deprecation of Press Key keyword (#1892)
The Press Keys keyword was introduced to replace Press Key. Press Key in turn was deprecated but I (Ed Manlove) failed to remove. Its been noted that both keywords use different underlying methods for sending or pressing keys and either one will work in differing situations. So instead of removing Press Key, it has been reinstated as a library keyword.

Acknowledgements

  • Luciano Martorella for contributing the new minimize keyword (#1741)
  • Yuri Verweij and Lisa Crispin for reviewing changes and additions to Attribute or Property keywords (#1822)
  • Noam Manos for reporting the issues where the Open Browser 'Options' object has no attribute (#1877)
  • Yuri for helping update the contribution guide (#1881)
  • All those who have commented on the deprecation of Press Key keyword (#1892)
  • Yuri and Lisa for assisting with the addition of Wait For Expected Condition keyword and for the Robot Framework Foundation for the ecosystem support (#1827)

and Yuri Verweij, Lisa Crispin, and Tatu Aalto for their continued support of the library development.

See full details in release notes