SeleniumLibrary provides browser automation keywords for Robot Framework using Selenium internally. Install from PyPI with pip; Selenium Manager handles browser drivers.
Overview
SeleniumLibrary is a web testing library for Robot Framework. Tests import it like any other library and use its keywords to open browsers, interact with pages, and assert behavior while Selenium carries out the underlying browser control.
The library targets current Selenium and supports CPython and PyPy across documented Python versions. Installing the PyPI package pulls in compatible Selenium and Robot Framework dependencies. Browsers and drivers are installed and managed automatically through Selenium Manager.
Keywords are documented for import-time options and individual actions. They are fairly low level and often need locators or other implementation-specific arguments, so teams commonly wrap them in project-specific higher-level Robot keywords. A public plugin API allows adding or changing keywords and adjusting internal behavior, and separate libraries can be built on top of SeleniumLibrary when extensions are domain-specific.
Usage follows standard Robot Framework test data syntax: suites declare the library in settings, define test cases, and optionally tear down browsers. Typical patterns include logging in through composed keywords built from library primitives.
Key features
- Robot Framework browser keywords
- Built on Selenium WebDriver
- Selenium Manager for drivers
- CPython and PyPy support
- Import-time library options
- Plugin API for custom keywords
- Extensible public APIs
- Documented keyword reference
Use cases
- Robot Framework web acceptance tests
- Browser UI regression automation
- Custom keyword libraries on Selenium
- Teaching Robot web test syntax
- PyPy-based test environments
Does the same job as
SeleniumLibrary doesn't name these products itself, but its own description shows it does the same job.