robotframework-seleniumlibrary 6.8.0


pip install robotframework-seleniumlibrary

  Latest version

Released: Oct 04, 2025

Project Links

Meta
Author: Ed Manlove, Yuri Verweij
Requires Python: >=3.8

Classifiers

Development Status
  • 5 - Production/Stable

License
  • OSI Approved :: Apache Software License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3 :: Only

Topic
  • Software Development :: Testing

Framework
  • Robot Framework
  • Robot Framework :: Library

Introduction

SeleniumLibrary is a web testing library for Robot Framework that utilizes the Selenium tool internally. The project is hosted on GitHub and downloads can be found from PyPI.

SeleniumLibrary currently works with Selenium 4. It supports Python 3.8 through 3.13. In addition to the normal Python interpreter, it works also with PyPy.

SeleniumLibrary is based on the “old SeleniumLibrary” that was forked to Selenium2Library and then later renamed back to SeleniumLibrary. See the VERSIONS.rst for more information about different versions and the overall project history.

https://img.shields.io/pypi/v/robotframework-seleniumlibrary.svg?label=version https://img.shields.io/pypi/dm/robotframework-seleniumlibrary.svg https://img.shields.io/pypi/l/robotframework-seleniumlibrary.svg https://github.com/robotframework/SeleniumLibrary/actions/workflows/CI.yml/badge.svg?branch=master

Keyword Documentation

See keyword documentation for available keywords and more information about the library in general.

Installation

The recommended installation method is using pip:

pip install --upgrade robotframework-seleniumlibrary

Running this command installs also the latest Selenium and Robot Framework versions. The --upgrade option can be omitted when installing the library for the first time.

It is possible to install directly from the GitHub repository. To install latest source from the master branch, use this command:

pip install git+https://github.com/robotframework/SeleniumLibrary.git

Please note that installation will take some time, because pip will clone the SeleniumLibrary project to a temporary directory and then perform the installation.

See Robot Framework installation instructions for detailed information about installing Python and Robot Framework itself. For more details about using pip see its own documentation.

Browser drivers

Browsers and drivers are installed and managed automatically by Selenium Manager. For more information, see the Selenium documentation.

Usage

To use SeleniumLibrary in Robot Framework tests, the library needs to first be imported using the Library setting as any other library. The library accepts some import time arguments, which are documented in the keyword documentation along with all the keywords provided by the library.

When using Robot Framework, it is generally recommended to write as easy-to-understand tests as possible. The keywords provided by SeleniumLibrary is pretty low level, though, and often require implementation-specific arguments like element locators to be passed as arguments. It is thus typically a good idea to write tests using Robot Framework’s higher-level keywords that utilize SeleniumLibrary keywords internally. This is illustrated by the following example where SeleniumLibrary keywords like Input Text are primarily used by higher-level keywords like Input Username.

*** Settings ***
Documentation     Simple example using SeleniumLibrary.
Library           SeleniumLibrary

*** Variables ***
${LOGIN URL}      http://localhost:7272
${BROWSER}        Chrome

*** Test Cases ***
Valid Login
    Open Browser To Login Page
    Input Username    demo
    Input Password    mode
    Submit Credentials
    Welcome Page Should Be Open
    [Teardown]    Close Browser

*** Keywords ***
Open Browser To Login Page
    Open Browser    ${LOGIN URL}    ${BROWSER}
    Title Should Be    Login Page

Input Username
    [Arguments]    ${username}
    Input Text    username_field    ${username}

Input Password
    [Arguments]    ${password}
    Input Text    password_field    ${password}

Submit Credentials
    Click Button    login_button

Welcome Page Should Be Open
    Title Should Be    Welcome Page

The above example is a slightly modified version of an example in a demo project that illustrates using Robot Framework and SeleniumLibrary. See the demo for more examples that you can also execute on your own machine. For more information about Robot Framework test data syntax in general see the Robot Framework User Guide.

Extending SeleniumLibrary

Before creating your own library which extends the SeleniumLibrary, please consider would the extension be also useful also for general usage. If it could be useful also for general usage, please create a new issue describing the enhancement request and even better if the issue is backed up by a pull request.

If the enhancement is not generally useful, example solution is domain specific, then the SeleniumLibrary offers public APIs which can be used to build its own plugins and libraries. Plugin API allows us to add new keywords, modify existing keywords and modify the internal functionality of the library. Also new libraries can be built on top of the SeleniumLibrary. Please see extending documentation for more details about the available methods and for examples how the library can be extended.

Community

If the provided documentation is not enough, there are various community channels available:

6.8.0 Oct 04, 2025
6.7.1 Feb 27, 2025
6.7.0 Jan 06, 2025
6.7.0rc1 Dec 29, 2024
6.6.1 Sep 06, 2024
6.6.0 Sep 06, 2024
6.5.0 Jun 15, 2024
6.5.0rc1 Jun 11, 2024
6.4.0 May 22, 2024
6.4.0rc1 May 19, 2024
6.3.0 Apr 19, 2024
6.3.0rc2 Apr 16, 2024
6.3.0rc1 Mar 30, 2024
6.2.0 Nov 25, 2023
6.2.0rc1 Nov 19, 2023
6.1.3 Oct 12, 2023
6.1.3b1 Sep 25, 2023
6.1.2 Sep 09, 2023
6.1.2rc1 Aug 26, 2023
6.1.1 Aug 04, 2023
6.1.1rc1 Aug 02, 2023
6.1.0 May 03, 2023
6.1.0rc1 Apr 28, 2023
6.0.0 Jan 08, 2022
6.0.0rc1 Jan 01, 2022
5.1.3 Mar 23, 2021
5.1.2 Mar 22, 2021
5.1.1 Mar 13, 2021
5.1.0 Feb 26, 2021
5.0.1 Feb 26, 2021
5.0.0 Jan 30, 2021
5.0.0b1 Oct 11, 2020
5.0.0a3 Sep 28, 2020
5.0.0a2 Sep 22, 2020
5.0.0a1 Sep 21, 2020
4.5.0 Jul 26, 2020
4.5.0rc2 Jul 15, 2020
4.5.0rc1 Jul 10, 2020
4.4.0 Apr 29, 2020
4.4.0rc3 Apr 26, 2020
4.4.0rc2 Apr 19, 2020
4.4.0rc1 Apr 18, 2020
4.3.0 Feb 07, 2020
4.3.0rc1 Feb 05, 2020
4.2.0 Jan 30, 2020
4.2.0rc1 Jan 24, 2020
4.1.0 Oct 20, 2019
4.1.0rc1 Oct 13, 2019
4.0.0 Sep 20, 2019
4.0.0rc1 Sep 07, 2019
4.0.0b1 Aug 22, 2019
4.0.0a2 Jul 04, 2019
4.0.0a1 Apr 18, 2019
3.3.1 Jan 04, 2019
3.3.0 Dec 23, 2018
3.2.0 Sep 21, 2018
3.2.0rc1 Sep 16, 2018
3.1.1 Mar 06, 2018
3.1.0 Feb 15, 2018
3.1.0a2 Feb 13, 2018
3.1.0a1 Feb 11, 2018
3.0.1 Dec 09, 2017
3.0.0 Dec 01, 2017
3.0.0rc2 Nov 28, 2017
3.0.0rc1 Nov 15, 2017
3.0.0b3 Sep 28, 2017
3.0.0b1 Sep 01, 2017
3.0.0a2 Aug 25, 2017
2.9.2 Sep 02, 2015
2.9.2.win32 Sep 02, 2015
2.9.2.win Sep 02, 2015
Extras: None
Dependencies:
selenium (>=4.3.0)
robotframework (>=4.1.3)
robotframework-pythonlibcore (>=4.4.1)
click (>=8.0)