Web testing library for Robot Framework
Project description
Selenium2Library is a web testing library for Robot Framework that uses the Selenium tool internally. The project is hosted on GitHub and downloads can be found from PyPI.
Starting from version 3.0, Selenium2Library is renamed to SeleniumLibrary and this project exists mainly to help with transitioning.
Versions
Selenium2Library 3.0 and newer extend the new SeleniumLibrary and thus contain exactly the same code and functionality. There have been lot of internal changes in the library, but external functionality provided by keywords should be fully backwards compatible. Libraries and tools using Selenium2Library internally may need to be updated to support Selenium2Library 3.0, though. Selenium2Library 1.8 is the latest, and last, legacy version with the old architecture and code.
Selenium2Library 3.0 supports Python 2.7 as well as Python 3.3 and newer. Selenium2Library 1.8 supports Python 2.6-2.7.
Keyword documentation
Selenium2Library 3.0 (latest)
Selenium2Library 1.8 (legacy)
Installation
The recommended approach to install Selenium2Library, regardless the version, is using pip.
Install (or upgrade) the latest Selenium2Library version:
pip install --upgrade robotframework-selenium2library
Install the legacy Selenium2Library 1.8.0 version:
pip install robotframework-selenium2library==1.8.0
Migrating to SeleniumLibrary
Existing Selenium2Library users should start migrating to the SeleniumLibrary. For most users this should be a simple procedure:
Install the latest Selenium2Library as explained above. This installs both SeleniumLibrary and Selenium2Library, and in fact Selenium2Library is nowadays just a thin wrapper for SeleniumLibrary.
Execute tests normally to see are there problems.
If problems are encountered, try on investigate why they occur. Possible problems can be divided into two categories:
If a keyword provided by the library itself has changed, take a look at SeleniumLibrary 3.0 release notes to see is it a known backwards incompatible change. If it isn’t, you may have encountered a regression that ought to be reported to SeleniumLibrary issue tracker.
If a library using Selenium2Library does not work anymore, it is likely due to the large internal changes in SeleniumLibrary 3.0. Report the problem to the maintainers of the broken library or fix the problem yourself if you are the maintainer.
Regardless the problem, you can always ask help on various support channels.
If no problems occur or after problems have been resolved, you can start changing library imports to use SeleniumLibrary instead of Selenium2Library. Also all keyword usages in form like Selenium2Library.Title Should Be need to be updated.
After test data has been updated, Selenium2Library installation can be removed altogether.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robotframework-selenium2library-3.0.0.tar.gz
.
File metadata
- Download URL: robotframework-selenium2library-3.0.0.tar.gz
- Upload date:
- Size: 71.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a8e942b0788b16ded253039008b34d2b46199283461b294f0f41a579c70fda7 |
|
MD5 | 7f1bb414dc0f45f37cb3ab2e24ffef70 |
|
BLAKE2b-256 | c47d3c07081e7f0f1844aa21fd239a0139db4da5a8dc219d1e81cb004ba1f4e2 |
Provenance
File details
Details for the file robotframework_selenium2library-3.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: robotframework_selenium2library-3.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1826b1ce8ccac76f14c4812e2d6df79f52ecda8a3c59c427eea45548c2e22cb1 |
|
MD5 | 957b500018bdc3f3701873d7d23058d5 |
|
BLAKE2b-256 | 1cf1612f9aa29f33b25a1034749dde67dfbf6de9b297709d06df71f9bfabfc81 |