selenium-page-factory
Python library provides page factory approach to implement page object model in selenium
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, supports current Python versions, and solves a real problem in Selenium test organization. Install friction is low with one dependency. MIT licensing carries no restrictions. Suitable for teams building or scaling Selenium test automation who want a structured page object pattern without heavy framework overhead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a WebDriver instance (from selenium) and a target web application to interact with.
- Low friction install with a single runtime dependency (selenium).
- Actively maintained with a recent release 73 days ago and ongoing commits; supports modern Python versions 3.7–3.12.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects without legal friction.
last release 2026-06-02 (73 days) · last repo commit 2026-06-04 · 44 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 80,249 downloads/mo, #14,303 on PyPI
Alternatives
Verify before relying
pip install selenium-page-factory
from selenium_page_factory import PageFactory
class MyPage(PageFactory):
def __init__(self, driver):
self.driver = driver
self.timeout = 15
page = MyPage(driver)
page.set_text(locator, 'text')
page.click_button(locator)- Whether the unittest coverage claim in the description is accurate and what it measures.
- Performance characteristics when managing large numbers of page elements or complex wait conditions.
- How retry and flaky-test handling mechanisms interact with Selenium 4 ActionChains in practice.
What it is and what it does
selenium-page-factory provides a Python implementation of the page factory pattern, a structured way to organize Selenium test automation code. Instead of scattering WebDriver element locators throughout test code, you declare all page elements in a dictionary within a PageFactory subclass; the library then initializes them as class members with extended methods. Each extended method wraps standard Selenium operations with explicit waits, retry logic, and visual debugging (element highlighting). The package supports Selenium 4 ActionChains, Appium for mobile testing, and specialized operations like drag-and-drop, scroll-into-view, and click-with-retry to handle flaky tests.
It's designed for teams building maintainable Selenium test suites where page structure is centralized and reusable. You define a page class once, pass in a WebDriver instance, set optional timeouts and highlighting, and then call extended methods like set_text, click_button, or select_element_by_text on declared elements. The library handles visibility and clickability checks before acting, reducing boilerplate waits in test code.
Use it for
- Organize large Selenium test suites by centralizing page element locators and interactions in reusable page classes.
- Reduce flaky test failures by using built-in explicit waits and click-with-retry on elements before interaction.
- Automate web application testing with Appium support for both desktop and mobile test scenarios.
- Debug test failures faster by enabling element highlighting to see which elements are being interacted with.
- Manage complex multi-element interactions (lists, tables, dropdowns) with extended methods like get_list_item_count and select_element_by_text.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, supports current Python versions, and solves a real problem in Selenium test organization. Install friction is low with one dependency. MIT licensing carries no restrictions. Suitable for teams building or scaling Selenium test automation who want a structured page object pattern without heavy framework overhead.
Install
selenium-page-factory on PyPI
Before you install
Low friction install with a single runtime dependency (selenium). Actively maintained with a recent release 73 days ago and ongoing commits; supports modern Python versions 3.7–3.12.
Requires a WebDriver instance (from selenium) and a target web application to interact with.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects without legal friction.
Quickstart
pip install selenium-page-factory
from selenium_page_factory import PageFactory
class MyPage(PageFactory):
def __init__(self, driver):
self.driver = driver
self.timeout = 15
page = MyPage(driver)
page.set_text(locator, 'text')
page.click_button(locator)
Verify before relying
- Whether the unittest coverage claim in the description is accurate and what it measures.
- Performance characteristics when managing large numbers of page elements or complex wait conditions.
- How retry and flaky-test handling mechanisms interact with Selenium 4 ActionChains in practice.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageselenium |
| Maintenance | Actively maintained 73 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 80,249 / month, #14,303 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing |
Evidence: selenium_page_factory-2.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “page object model selenium”
- selenium-page-factoryImplements a page factory pattern for Selenium test automation,…
- Selenium-ScreenshotCaptures full-page or element-level screenshots of web pages and DOM…
- DrissionPageDrissionPage is a Python web automation tool that controls…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also Selenium-Screenshot · robotframework-extendedselenium2library · Appium-Python-Client · selenium · webdriver-manager · seletools · requestium · selenium-wire · robotframework-selenium2library · eyes-selenium