|
| 1 | +======================= |
| 2 | +SeleniumLibrary 5.0.0a2 |
| 3 | +======================= |
| 4 | + |
| 5 | + |
| 6 | +.. default-role:: code |
| 7 | + |
| 8 | + |
| 9 | +SeleniumLibrary_ is a web testing library for `Robot Framework`_ that utilizes |
| 10 | +the Selenium_ tool internally. SeleniumLibrary 5.0.0a1 is a new release with |
| 11 | +chained locators support and improving autocompletion from Python IDE. Support |
| 12 | +for Python 2 ja Jython is dropped in this release. Compared to Alpha 1, this |
| 13 | +release actually contains the stub file in the installation package. |
| 14 | + |
| 15 | +All issues targeted for SeleniumLibrary v5.0.0 can be found |
| 16 | +from the `issue tracker`_. |
| 17 | + |
| 18 | +If you have pip_ installed, just run |
| 19 | + |
| 20 | +:: |
| 21 | + |
| 22 | + pip install --pre --upgrade robotframework-seleniumlibrary |
| 23 | + |
| 24 | +to install the latest available release or use |
| 25 | + |
| 26 | +:: |
| 27 | + |
| 28 | + pip install robotframework-seleniumlibrary==5.0.0a1 |
| 29 | + |
| 30 | +to install exactly this version. Alternatively you can download the source |
| 31 | +distribution from PyPI_ and install it manually. |
| 32 | + |
| 33 | +SeleniumLibrary 5.0.0a2 was released on Tuesday September 22, 2020. SeleniumLibrary supports |
| 34 | +Python 3.6+, Selenium 3.141.0+ and Robot Framework 3.1.2+. |
| 35 | + |
| 36 | +.. _Robot Framework: http://robotframework.org |
| 37 | +.. _SeleniumLibrary: https://github.com/robotframework/SeleniumLibrary |
| 38 | +.. _Selenium: http://seleniumhq.org |
| 39 | +.. _pip: http://pip-installer.org |
| 40 | +.. _PyPI: https://pypi.python.org/pypi/robotframework-seleniumlibrary |
| 41 | +.. _issue tracker: https://github.com/robotframework/SeleniumLibrary/issues?q=milestone%3Av5.0.0 |
| 42 | + |
| 43 | + |
| 44 | +.. contents:: |
| 45 | + :depth: 2 |
| 46 | + :local: |
| 47 | + |
| 48 | +Most important enhancements |
| 49 | +=========================== |
| 50 | + |
| 51 | +Selenium 4 has deprecated all find_element_by_* methods, therefore move using find_element(By.*) (`#1575`_, alpha 1) |
| 52 | +-------------------------------------------------------------------------------------------------------------------- |
| 53 | +SeleniumLibrary now uses find_element(By.*) methods to locate elements, instead of the deprecated find_element_by_* |
| 54 | +methods. This will result less warning messages in the outputs. |
| 55 | + |
| 56 | +Many thanks for Badari to providing PR to make the change. |
| 57 | + |
| 58 | +Support of list of locator-strings to use different strategies and WebElement as entry point. (`#1512`_, alpha 1) |
| 59 | +----------------------------------------------------------------------------------------------------------------- |
| 60 | +SeleniumLibrary offers support chain different types locators together. Example: Get WebElements xpath://a >> css:.foo |
| 61 | +is not possible. |
| 62 | + |
| 63 | +There is small change the separator string is a backwards incompatible change, in that case, locator can be |
| 64 | +provided as a list. |
| 65 | + |
| 66 | +Many thanks for Badari for providing the initial PR for implementing the chained locators. |
| 67 | + |
| 68 | +Implement better IDE support for SeleniumLibrary (`#1588`_, alpha 1) |
| 69 | +-------------------------------------------------------------------- |
| 70 | +SeleniumLibrary now provides Python `stub file`_/.pyi file for the SeleniumLibrary instance. This |
| 71 | +offers better automatic completions from Python IDE. |
| 72 | + |
| 73 | +Backwards incompatible changes |
| 74 | +============================== |
| 75 | + |
| 76 | +Drop Python 2 support (`#1444`_, alpha 1) |
| 77 | +----------------------------------------- |
| 78 | +Python 2 is not anymore supported. Only Python 3.6+. |
| 79 | + |
| 80 | +Many thanks for Hugo van Kemenade for helping in cleaning the code. |
| 81 | + |
| 82 | +Drop Jython support (`#1451`_, alpha 1) |
| 83 | +--------------------------------------- |
| 84 | +Also with Python 2, Jython support is gone. |
| 85 | + |
| 86 | +.. _stub file: https://www.python.org/dev/peps/pep-0484/#stub-files |
| 87 | + |
| 88 | +Full list of fixes and enhancements |
| 89 | +=================================== |
| 90 | + |
| 91 | +.. list-table:: |
| 92 | + :header-rows: 1 |
| 93 | + |
| 94 | + * - ID |
| 95 | + - Type |
| 96 | + - Priority |
| 97 | + - Summary |
| 98 | + - Added |
| 99 | + * - `#1444`_ |
| 100 | + - enhancement |
| 101 | + - critical |
| 102 | + - Drop Python 2 support |
| 103 | + - alpha 1 |
| 104 | + * - `#1451`_ |
| 105 | + - enhancement |
| 106 | + - critical |
| 107 | + - Drop Jython support |
| 108 | + - alpha 1 |
| 109 | + * - `#1575`_ |
| 110 | + - enhancement |
| 111 | + - critical |
| 112 | + - Selenium 4 has deprecated all find_element_by_* methods, therefore move using find_element(By.*) |
| 113 | + - alpha 1 |
| 114 | + * - `#1649`_ |
| 115 | + - bug |
| 116 | + - high |
| 117 | + - Also add stub file to distribution |
| 118 | + - alpha 2 |
| 119 | + * - `#1512`_ |
| 120 | + - enhancement |
| 121 | + - high |
| 122 | + - Support of list of locator-strings to use different strategies and WebElement as entry point. |
| 123 | + - alpha 1 |
| 124 | + * - `#1588`_ |
| 125 | + - enhancement |
| 126 | + - high |
| 127 | + - Implement better IDE support for SeleniumLibrary |
| 128 | + - alpha 1 |
| 129 | + |
| 130 | +Altogether 6 issues. View on the `issue tracker <https://github.com/robotframework/SeleniumLibrary/issues?q=milestone%3Av5.0.0>`__. |
| 131 | + |
| 132 | +.. _#1444: https://github.com/robotframework/SeleniumLibrary/issues/1444 |
| 133 | +.. _#1451: https://github.com/robotframework/SeleniumLibrary/issues/1451 |
| 134 | +.. _#1575: https://github.com/robotframework/SeleniumLibrary/issues/1575 |
| 135 | +.. _#1649: https://github.com/robotframework/SeleniumLibrary/issues/1649 |
| 136 | +.. _#1512: https://github.com/robotframework/SeleniumLibrary/issues/1512 |
| 137 | +.. _#1588: https://github.com/robotframework/SeleniumLibrary/issues/1588 |
0 commit comments