GithubHelp home page GithubHelp logo

selenium2library's Introduction

Selenium2Library

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

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:

  1. 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.
  2. Execute tests normally to see are there problems.
  3. 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.

  4. 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.
  5. After test data has been updated, Selenium2Library installation can be removed altogether.

selenium2library's People

Contributors

aaltat avatar pekkaklarck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.