This document guides you through the learning path for mastering Playwright automation in the K11TechLab framework, with references to demo tests and advanced categories including MCP (Model Context Protocol).
- Simple navigation and assertions
- Example:
tests/smoke/HomeTest.spec.js
- Example:
- Selectors and element actions
- Example:
utils/ElementAction.js
- Example:
- Waits and synchronization
- Example:
utils/WaitIUtils.js
- Example:
- Advanced selector strategies (text, CSS, XPath, nth, attribute, role, label, test id)
- Example:
tests/selectors/SelectorsAdvanced.spec.js
- Example:
- Shadow DOM and iframe handling
- Example:
tests/selectors/SelectorsAdvanced.spec.js(shadow DOM & iframe sections)
- Example:
- Maintainable page objects from DOM artifacts
- Example:
pages/LocatorsLabPage.js
- Example:
- Documentation
- See:
doc/playwright-basics/advanced-selectors.md
- See:
- CSV-driven test data
- Example:
testdata/login_data.csv,utils/DataProvider.js
- Example:
- Parameterized test flows
- Example:
tests/smoke/LoginTest.spec.js
- Example:
- Component-level tests (React, UI)
- Example:
components/QuickActions.js,tests/components/HeroCarousel.spec.jsx,tests/components/QuickActions.spec.jsx,tests/components/TechLabCard.spec.jsx
- Example:
- API testing and network mocking
- Example:
tests/api/AIAPITests.spec.js,tests/api/APIActionsIntegration.spec.js,tests/api/JSONPlaceholderAPITests.spec.js
- Example:
- Visual regression and screenshot validation
- Example:
tests/advanced/VisualRegressionTest.spec.js,tests/advanced/VisualRegressionTest.spec.js-snapshots/, custom fixtures
- Example:
- XState integration for context-aware flows
- Example:
doc/xstate-overview.md
- Example:
- Generic Playwright hooks (setup, teardown, custom logic) & custom test context
- Example:
hooks/hook.js,uitestengine/testcontext.js
- Example:
- MCP login and scenario tests
- Example:
tests/mcp/MCPLoginTest.spec.js
- Example:
- MCP reports and artifacts
- Example:
reports/mcp/
- Example:
- AI-powered Playwright test generation
- Example:
ai/generate_generic_tests_ai.js,prompts/playwright_login_test_generation.txt - See:
README-ai.md
- Example:
- Advanced selectors:
doc/playwright-basics/advanced-selectors.md - Component testing:
doc/component-testing.md - Playwright JS/TS/Python comparison:
doc/cypress-vs-playwright.md - XState overview:
doc/xstate-overview.md - MCP and AI integration:
README-ai.md
Follow this path to build foundational skills, then explore advanced automation and AI-driven workflows for real-world web applications.