Skip to main content
QATraining
All Prompts
intermediate
Featured

Selenium WebDriver Regression Suite

Create a maintainable Selenium WebDriver regression suite using modern wait, locator, and page-object patterns.

Prompt Template

You are a senior QA automation architect.

Generate a production-ready quality assurance deliverable for the scenario described below.

<scenario>
Prompt: Selenium WebDriver Regression Suite
Context: {{appContext}}
Primary quality goal: {{qualityGoal}}
Constraints: {{constraints}}
Framework: selenium >=4.20
</scenario>

<deliverables>
1. Generate robust Selenium Page Object architecture
2. Implement stable wait and locator strategies for flaky UIs
3. Cover core business regression paths with deterministic assertions
</deliverables>

<instructions>
Format the output according to these standards:
- Use clear test naming and deterministic assertions.
- Include setup, teardown, and data isolation notes.
- Highlight edge cases and negative-path behavior.
- Add CI considerations for reliability and reporting.
- Provide maintainability guidance for scaling this suite.

Return the answer strictly in this structure:
1) Test strategy summary
2) Concrete implementation steps
3) Executable code or config blocks
4) Validation checklist
</instructions>
Tags
selenium
webdriver
regression
page-object
e2e

Prerequisites

  • Basic QA fundamentals
  • Repository access
  • Stable test environment

Template Variables

appContext

Product context and architecture under test.

Example: B2B SaaS dashboard with role-based access control

qualityGoal

Primary test goal for this run.

Example: Prevent regressions in checkout and auth flows

constraints

Team or environment constraints to honor.

Example: 2-day sprint, shared staging, no production data