├── MANIFEST.in ├── README.rst ├── docs ├── Selenium2Library-1.8.0.html ├── Selenium2Library.html └── index.html ├── requirements.txt ├── setup.cfg ├── setup.py └── src └── Selenium2Library └── __init__.py /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include MANIFEST.in 2 | include *.txt 3 | include *.rst 4 | exclude */*.txt # limit previous command to include only *.txt files in root folder 5 | exclude */*.rst # limit previous command to include only *.rst files in root folder 6 | 7 | include docs/Selenium2Library.html 8 | 9 | recursive-include src *.py 10 | graft src/Selenium2Library/resources 11 | recursive-exclude src *.pyc 12 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | Selenium2Library 2 | ================ 3 | 4 | Selenium2Library is a web testing library for `Robot Framework`_ 5 | that uses the Selenium_ tool internally. The project is hosted on 6 | GitHub_ and downloads can be found from PyPI_. 7 | 8 | Starting from version 3.0, Selenium2Library is renamed to SeleniumLibrary_ 9 | and this project exists mainly to help with transitioning. 10 | 11 | Versions 12 | -------- 13 | 14 | Selenium2Library 3.0 and newer extend the new SeleniumLibrary_ and thus 15 | contain exactly the same code and functionality. There have been lot of 16 | internal changes in the library, but external functionality provided by 17 | keywords should be fully backwards compatible. Libraries and tools using 18 | Selenium2Library internally may need to be updated to support 19 | Selenium2Library 3.0, though. Selenium2Library 1.8 is the latest, and last, 20 | legacy version with the old architecture and code. 21 | 22 | Selenium2Library 3.0 supports Python 2.7 as well as Python 3.3 and newer. 23 | Selenium2Library 1.8 supports Python 2.6-2.7. 24 | 25 | Keyword documentation 26 | --------------------- 27 | 28 | - `Selenium2Library 3.0`__ (latest) 29 | - `Selenium2Library 1.8`__ (legacy) 30 | 31 | __ http://robotframework.org/Selenium2Library/Selenium2Library.html 32 | __ http://robotframework.org/Selenium2Library/Selenium2Library-1.8.0.html 33 | 34 | Installation 35 | ------------ 36 | 37 | The recommended approach to install Selenium2Library, regardless the version, 38 | is using pip_. 39 | 40 | Install (or upgrade) the latest Selenium2Library version:: 41 | 42 | pip install --upgrade robotframework-selenium2library 43 | 44 | Install the legacy Selenium2Library 1.8.0 version:: 45 | 46 | pip install robotframework-selenium2library==1.8.0 47 | 48 | Migrating to SeleniumLibrary 49 | ---------------------------- 50 | 51 | Existing Selenium2Library users should start migrating to the 52 | SeleniumLibrary_. For most users this should be a simple procedure: 53 | 54 | 1. Install the latest Selenium2Library as explained above. This installs 55 | both SeleniumLibrary and Selenium2Library, and in fact Selenium2Library 56 | is nowadays just a thin wrapper for SeleniumLibrary. 57 | 58 | 2. Execute tests normally to see are there problems. 59 | 60 | 3. If problems are encountered, try on investigate why they occur. Possible 61 | problems can be divided into two categories: 62 | 63 | - If a keyword provided by the library itself has changed, take a look at 64 | `SeleniumLibrary 3.0 release notes`_ to see is it a known backwards 65 | incompatible change. If it isn't, you may have encountered a regression 66 | that ought to be reported to `SeleniumLibrary issue tracker`_. 67 | 68 | - If a library using Selenium2Library does not work anymore, it is likely 69 | due to the large internal changes in SeleniumLibrary 3.0. Report the 70 | problem to the maintainers of the broken library or fix the problem 71 | yourself if you are the maintainer. 72 | 73 | Regardless the problem, you can always ask help on various `support 74 | channels`_. 75 | 76 | 4. If no problems occur or after problems have been resolved, you can start 77 | changing library imports to use ``SeleniumLibrary`` instead of 78 | ``Selenium2Library``. Also all keyword usages in form like 79 | ``Selenium2Library.Title Should Be`` need to be updated. 80 | 81 | 5. After test data has been updated, Selenium2Library installation can 82 | be removed altogether. 83 | 84 | .. _Robot Framework: http://robotframework.org 85 | .. _Selenium: http://seleniumhq.org 86 | .. _PyPI: https://pypi.python.org/pypi/robotframework-selenium2library 87 | .. _GitHub: https://github.com/robotframework/Selenium2Library 88 | .. _SeleniumLibrary: https://github.com/robotframework/SeleniumLibrary 89 | .. _pip: http://pip-installer.org 90 | .. _SeleniumLibrary 3.0 release notes: https://github.com/robotframework/SeleniumLibrary/blob/master/docs/SeleniumLibrary-3.0.0.rst 91 | .. _SeleniumLibrary issue tracker: https://github.com/robotframework/SeleniumLibrary/issues 92 | .. _support channels: http://robotframework.org/#support 93 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |