Registry / testing / robotframework-seleniumtestability

robotframework-seleniumtestability

JSON →
library2.1.0pypypiunverified

Robot Framework SeleniumTestability is a library that enhances Robot Framework's SeleniumLibrary by providing additional keywords to handle asynchronous events and improve test stability for modern web applications. It helps in waiting for page readiness, Angular, jQuery, and network idle states. The current version is 2.1.0, with releases often coinciding with major SeleniumLibrary or Selenium updates.

pip install robotframework-seleniumtestability
INSTALL
IMPORT
SIG · ROBOTFRAMEWORK-SEL
R
robotframework-seleniumtestability
testingpythonv2.1.0
Install
4.8s avg
Import
—
Disk
63MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 62.5MB
glibc
py 3.10–3.920 runs
installs and imports cleanly · install 4.8s · import 0.000s · 63MB
63MB installed
● package 63MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SeleniumTestability
✓ Library SeleniumTestability
This library is loaded within Robot Framework test suites using the 'Library' keyword in .robot files, not via standard Python 'import' statements. The `Library` keyword makes the keywords available in the test suite.

This quickstart demonstrates how to include SeleniumTestability in your Robot Framework project and use its core 'Wait For Page Ready' keyword to ensure the page is fully loaded, including common asynchronous operations, before proceeding with test steps. Ensure `SeleniumLibrary` is also imported and configured.

*** Settings *** Library SeleniumLibrary timeout=10s Library SeleniumTestability *** Test Cases *** Example Test With Async Waits Open Browser https://example.com chrome Wait For Page Ready Title Should Be Example Domain # Example: If your application uses jQuery, Angular, or waits for network idle # Wait For JQuery Ready # Wait For Angular Ready # Wait Until Network Idle Close Browser
Debug
Known issues
breakingVersion 2.0.0 introduced a breaking change requiring Selenium 4 (or greater) due to updates in Robot Framework SeleniumLibrary. If you are using an older SeleniumLibrary or Selenium 3, you must either upgrade your Selenium stack or use an older version of robotframework-seleniumtestability (<2.0.0).
fix
Upgrade your 'selenium' package to version 4+ and 'robotframework-seleniumlibrary' to a compatible version (e.g., 5.0+), or pin 'robotframework-seleniumtestability' to an earlier version like `robotframework-seleniumtestability<2.0.0`.
affects: >=2.0.0
gotchaThis library complements, but does not fully replace, the need for robust SeleniumLibrary waits. While it provides general asynchronous waits, complex or custom asynchronous operations might still require explicit 'Wait Until Element Is Visible' or 'Wait Until Element Contains' from SeleniumLibrary.
fix
Combine SeleniumTestability's broad waits (e.g., 'Wait For Page Ready') with specific SeleniumLibrary waits for unique application behaviors (e.g., 'Wait Until Element Is Enabled' or custom `Wait Until Keyword Succeeds`).
affects: all
gotchaEnsure SeleniumLibrary is imported and configured correctly *before* SeleniumTestability in your Robot Framework settings. SeleniumTestability relies on the browser context established by SeleniumLibrary.
fix
Always include `Library    SeleniumLibrary` with its necessary arguments (like `timeout`) before `Library    SeleniumTestability` in your Robot Framework settings files (`.robot`). Ensure SeleniumLibrary is properly installed and its browser initialization keywords are used.
affects: all
Upgrade
Version history
2.1.0latest on PyPI · released Feb 14, 2023
Audit
Dependencies
seleniumrequiredVersion 2.0.0+ of this library requires Selenium 4 or greater for compatibility with modern SeleniumLibrary versions.
robotframework-seleniumlibraryrequiredThis library extends SeleniumLibrary and is designed to be used in conjunction with it. SeleniumLibrary must be installed and configured separately to provide the underlying browser automation.
Agent activity
2 hits · last 30 days
node
2
Resources
robotframework-seleniumtestability — pip install robotframework-seleniumtestability · libregistry