Robot Framework Selenium2Library

3.0.0 · renamed · verified Thu Apr 16

Robot Framework Selenium2Library is a web testing library for Robot Framework, leveraging Selenium WebDriver internally. As of version 3.0.0, this project serves as a transitional wrapper for the `robotframework-seleniumlibrary` and is the final release. New development and maintenance have fully shifted to `robotframework-seleniumlibrary`.

Common errors

Warnings

Install

Imports

Quickstart

This Robot Framework example demonstrates a basic web test using `Selenium2Library` to open a browser, navigate to Google, perform a search, and verify the title. Note that from version 3.0, `Selenium2Library` transparently uses `SeleniumLibrary`'s keywords, so the keywords are the same.

*** Settings ***
Library    Selenium2Library

*** Test Cases ***
Example Google Search
    Open Browser    https://www.google.com    chrome
    Title Should Be    Google
    Input Text    name=q    Robot Framework Selenium2Library
    Click Button    name=btnK
    Title Should Contain    Robot Framework Selenium2Library - Google Search
    Close Browser

view raw JSON →