SeleniumLibrary is a web testing library for Robot Framework that utilizes the Selenium tool internally. SeleniumLibrary 5.0.0a1 is a new release with chained locators support and improving autocompletion from Python IDE. Support for Python 2 ja Jython is dropped in this release. Compared to Alpha 1, this release actually contains the stub file in the installation package.
All issues targeted for SeleniumLibrary v5.0.0 can be found from the issue tracker.
If you have pip installed, just run
pip install --pre --upgrade robotframework-seleniumlibrary
to install the latest available release or use
pip install robotframework-seleniumlibrary==5.0.0a1
to install exactly this version. Alternatively you can download the source distribution from PyPI and install it manually.
SeleniumLibrary 5.0.0a2 was released on Tuesday September 22, 2020. SeleniumLibrary supports Python 3.6+, Selenium 3.141.0+ and Robot Framework 3.1.2+.
Selenium 4 has deprecated all find_element_by_* methods, therefore move using find_element(By.*) (#1575, alpha 1)
SeleniumLibrary now uses find_element(By.*) methods to locate elements, instead of the deprecated find_element_by_* methods. This will result less warning messages in the outputs.
Many thanks for Badari to providing PR to make the change.
Support of list of locator-strings to use different strategies and WebElement as entry point. (#1512, alpha 1)
SeleniumLibrary offers support chain different types locators together. Example: Get WebElements xpath://a >> css:.foo is not possible.
There is small change the separator string is a backwards incompatible change, in that case, locator can be provided as a list.
Many thanks for Badari for providing the initial PR for implementing the chained locators.
Implement better IDE support for SeleniumLibrary (#1588, alpha 1)
SeleniumLibrary now provides Python stub file/.pyi file for the SeleniumLibrary instance. This offers better automatic completions from Python IDE.
Drop Python 2 support (#1444, alpha 1)
Python 2 is not anymore supported. Only Python 3.6+.
Many thanks for Hugo van Kemenade for helping in cleaning the code.
Drop Jython support (#1451, alpha 1)
Also with Python 2, Jython support is gone.
| ID | Type | Priority | Summary | Added |
|---|---|---|---|---|
| #1444 | enhancement | critical | Drop Python 2 support | alpha 1 |
| #1451 | enhancement | critical | Drop Jython support | alpha 1 |
| #1575 | enhancement | critical | Selenium 4 has deprecated all find_element_by_* methods, therefore move using find_element(By.*) | alpha 1 |
| #1649 | bug | high | Also add stub file to distribution | alpha 2 |
| #1512 | enhancement | high | Support of list of locator-strings to use different strategies and WebElement as entry point. | alpha 1 |
| #1588 | enhancement | high | Implement better IDE support for SeleniumLibrary | alpha 1 |
Altogether 6 issues. View on the issue tracker.