How nikita-filonov/playwright_python works
This repository provides Playwright page objects and reusable UI components for automating the Playwright documentation site. The intended workflow is page navigation and interaction, including opening search, entering a query, and selecting a result; a language page also supports checking language headings. The excerpts show these page-object and component relationships, but not the tests’ wiring or their starting page. The report-related files under docs are not mapped as runtime behavior.
Main entry points: component.py Component base · navbar.py Navigation bar · search_modal.py Search modal · base_page.py Base page
Components 14
Page Objects
- Home page
pages/playwright_home_page.py - Languages page
pages/playwright_languages_page.py - Base page
pages/base_page.py
Site Navigation
- Navigation bar
components/navigation/navbar.py - Search modal
components/modals/search_modal.py
UI Components
Other components
- Automation caller
- Playwright API
- Allure reporting
Connections 19
- Home page → Base page: extends
pages/playwright_home_page.py - Languages page → Base page: extends
pages/playwright_languages_page.py - Languages page → Title: uses
pages/playwright_languages_page.py - Base page → Navigation bar: constructs
pages/base_page.py - Base page → Playwright API: navigates via
pages/base_page.py - Navigation bar → Search modal: constructs
components/navigation/navbar.py - Navigation bar → Button: uses
components/navigation/navbar.py - Navigation bar → Link: uses
components/navigation/navbar.py - Navigation bar → Search modal: opens and checks
components/navigation/navbar.py - Search modal → Input: fills and checks
components/modals/search_modal.py - Search modal → List item: selects result
components/modals/search_modal.py - Search modal → Title: checks visibility
components/modals/search_modal.py - Button → Component base: extends
page_factory/button.py - Input → Component base: extends
page_factory/input.py - Link → Component base: extends
page_factory/link.py - List item → Component base: extends
page_factory/list_item.py - Title → Component base: extends
page_factory/title.py - Component base → Playwright API: locates and checks
page_factory/component.py - Component base → Allure reporting: records steps
page_factory/component.py