Online course · Development
AI-Powered Test Automation (Selenium + GenAI Test Generation)
Build UI test suites that last, and use GenAI to write them faster
Created by TrainSkool Trainer
- Development
- Intermediate
- English
- 29 lessons
- 13h 16m
- 8 assessments
- Certificate
Coming soon Launch price ₹1,999
This course is not open for enrolment yet.
About this course
An intermediate course for QA engineers, manual testers moving into automation, SDETs and API-testing graduates who want UI automation that lasts and want to use generative AI without lowering the quality bar. You test KaveriKart Mini, a practice grocery app for a Bengaluru startup that runs on your own machine, with Playwright (TypeScript, JavaScript or Python) or Selenium (Python). You will choose what deserves a browser test; write stable locators, correct waits, page objects and fixtures; design cases with boundaries and decision tables; prompt an LLM for test cases and review them and AI-generated code; triage failures, use self-healing safely and quarantine flaky tests; add visual and ARIA checks; run suites in GitHub Actions with honest gates; and manage reports, synthetic data and metrics with the DPDP Act in mind. Prerequisite: basic Python or JavaScript; Practical API Testing is recommended, not required. Included: text lessons, slides in every lesson, quick checks, chapter projects, auto-checked code exercises, module quizzes, a capstone with a rubric, a 20-question final exam and a certificate. Lessons are text and slides; trainer videos are coming later. TrainSkool is not affiliated with or endorsed by the Selenium project, Microsoft or any tool vendor named. What you will be able to do: - You will be able to decide what deserves a browser test and place every other check at the right level of the test pyramid - You will be able to write maintainable Selenium and Playwright tests with stable locators, correct waits, page objects and fixtures - You will be able to design test cases with partitions, boundaries and decision tables, and prompt an LLM for structured cases you then verify - You will be able to review AI-generated test code, recorders' output and Playwright test agents' plans for invented selectors, weak assertions and wrong expectations - You will be able to classify UI test failures, use self-healing with thresholds and review, and measure, fix and quarantine flaky tests - You will be able to add stable visual regression checks and ARIA snapshots, and choose an approach by measured need - You will be able to run suites in CI with sharding, sensible retries, protected secrets and quality gates that fail on missing results - You will be able to manage synthetic test data and write honest reports and metrics, and deliver a complete regression suite as a capstone
What you'll learn
- Decide what deserves a browser test and place every other check at the right level of the test pyramid
- Write maintainable Selenium and Playwright tests with stable locators, correct waits, page objects and fixtures
- Design test cases with partitions, boundaries and decision tables, and prompt an LLM for structured cases you then verify
- Review AI-generated test code, recorders' output and Playwright test agents' plans for invented selectors, weak assertions and wrong expectations
- Classify UI test failures, use self-healing with thresholds and review, and measure, fix and quarantine flaky tests
- Add stable visual regression checks and ARIA snapshots, and choose an approach by measured need
- Run suites in CI with sharding, sensible retries, protected secrets and quality gates that fail on missing results
- Manage synthetic test data and write honest reports and metrics, and deliver a complete regression suite as a capstone
Course content
Chapter 1 · Module 1: Test Automation Landscape: Selenium vs Playwright
- Code lab: What to Automate: The Test Pyramid and UI Tests That Earn Their KeepEvery software team eventually discovers that manual regression testing does not scale.10 topics · 25 min
- Code lab: How Selenium WebDriver Works: Drivers, Selenium Manager and GridSelenium is the tool most Indian QA job descriptions still name first, and a large share of existing enterprise test suites, in banks, insurers, e-commerce companies and IT services firms, are…10 topics · 28 min
- Code lab: How Playwright Works: Browser Contexts, Auto-Waiting and the Test RunnerPlaywright, an open-source framework from Microsoft, has become the default choice for many new web test projects, including at product companies and startups in Bengaluru, Pune and Hyderabad.10 topics · 28 min
- Code lab: Choosing a Tool and Setting Up the KaveriKart Practice Project" is one of the most common questions in QA interviews and team meetings, and it is usually argued with opinions.17 topics · 30 min
Chapter 2 · Module 2: Writing Maintainable UI Test Scripts
- Code lab: Locator Strategy: Roles, Labels, Test IDs, CSS and XPathAsk any automation team why their tests break and the top answer is locators.10 topics · 26 min
- Code lab: Waiting Correctly: Explicit Waits, Auto-Waiting and Why sleep() FailsTiming is the second big source of broken UI tests, and the most frustrating, because timing failures are intermittent.10 topics · 26 min
- Code lab: Page Objects and Component ObjectsOnce KaveriKart's suite grows past a dozen tests, the same locator appears in many files.10 topics · 28 min
- Code lab: Fixtures, Isolation and Assertions That Explain FailuresTwo habits separate a suite people trust from one they rerun until it goes green.16 topics · 26 min
Chapter 3 · Module 3: Using AI to Generate and Expand Test Cases
- Code lab: Test Design First: Partitions, Boundaries and Decision Tables Before Any PromptGenerative AI can produce fifty test cases for a feature in under a minute.10 topics · 28 min
- Code lab: Prompting an LLM for Test Cases: Context, Structure and ReviewAsking a chat assistant "write test cases for the coupon feature" gets you a confident, nicely formatted list.10 topics · 28 min
- Code lab: Generating Automation Code with AI: Codegen, Assistants and Playwright Test AgentsWriting the code for a well-designed test case is now the fastest part of test automation.10 topics · 28 min
- Code lab: Governing AI in Testing: Hallucinated Steps, Synthetic Data and the DPDP ActThe fastest way for an AI-assisted testing effort to go wrong is not a bad test.16 topics · 25 min
Chapter 4 · Module 4: Self-Healing Locators and Flaky-Test Triage
- Code lab: Why UI Tests Break: Locator Drift, Timing and Real BugsA red build is a question: did the product break, or did the test? Answering it quickly and correctly is most of the daily work of an automation engineer.10 topics · 26 min
- Code lab: Self-Healing Locators: How They Work and When They Lie"Self-healing tests" is one of the most heavily marketed ideas in test automation.10 topics · 28 min
- Code lab: Flaky Tests: Measuring, Triaging and QuarantiningA flaky test passes and fails on the same code without any change. One flaky test is an annoyance.10 topics · 26 min
- Code lab: Debugging Failures with Traces, Screenshots and LogsWhen a UI test fails on a CI runner in the middle of the night, nobody was watching the browser.16 topics · 28 min
Chapter 5 · Module 5: Visual Regression Testing Basics
- Code lab: What Visual Tests Catch: Baselines, Pixel Diffs and ThresholdsFunctional tests check what the DOM says. Customers see pixels.10 topics · 26 min
- Code lab: Stable Screenshots with Playwright: Masking, Fonts, Animations and PlatformsThe most common reason teams abandon visual testing is noise.10 topics · 28 min
- Code lab: AI-Assisted Visual Comparison and ARIA Snapshots: Choosing an ApproachPixel comparison is simple and free, but it has two limits that grow with the size of an app.16 topics · 26 min
Chapter 6 · Module 6: Integrating Tests into CI
- Code lab: Running UI Tests in CI: A GitHub Actions Pipeline for KaveriKartA test suite that runs only on Arjun's laptop protects only Arjun's laptop.10 topics · 28 min
- Code lab: Parallelism, Sharding, Retries and Test SelectionA UI suite that takes 40 minutes gets run less often, merged around, and eventually ignored.10 topics · 26 min
- Code lab: Environments, Secrets and Quality GatesOnce tests run in CI against real environments, two new responsibilities appear.16 topics · 26 min
Chapter 7 · Module 7: Reporting and Test-Data Management
- Code lab: Test Reports People Read: JUnit XML, HTML Reports and TrendsA test run that nobody reads is wasted compute.10 topics · 25 min
- Code lab: Test-Data Strategies: Factories, API Seeding and CleanupMost UI tests need data before they can start: a customer account, products in the catalogue, a cart with items, a coupon that has not been used yet, an order in the history.10 topics · 26 min
- Code lab: Synthetic and Masked Test Data for Indian AppsEvery Indian app that handles customers handles personal data: names, mobile numbers, addresses, email ids, UPI ids, sometimes PAN or Aadhaar-linked details.10 topics · 26 min
- Code lab: Quality Metrics That Matter and How to Report Them Honestly" The easy answers are numbers that are simple to produce and easy to game: number of automated tests, percentage passing, lines of test code, number of AI-generated cases.16 topics · 25 min
Chapter 8 · Module 8: Capstone: An Automated Regression Suite for KaveriKart
- Reading: Capstone Brief: The KaveriKart Release Regression SuiteKaveri Fresh is preparing "release 2" of KaveriKart.7 topics · 30 min
- Code lab: Capstone Workflow and DeliverablesYou will build the KaveriKart release regression suite in five steps, then run it against release 2 and report.10 topics · 45 min
- Assignment: Capstone Rubric, Self-Review and SubmissionYour capstone is graded out of 100 points against the rubric below.8 topics · 25 min
Assessments and certificate
- Module 1 quiz: Test Automation Landscape: Selenium vs Playwright7 questions · 15 min · pass mark 70%
- Module 2 quiz: Writing Maintainable UI Test Scripts7 questions · 15 min · pass mark 70%
- Module 3 quiz: Using AI to Generate and Expand Test Cases7 questions · 15 min · pass mark 70%
- Module 4 quiz: Self-Healing Locators and Flaky-Test Triage7 questions · 15 min · pass mark 70%
- Module 5 quiz: Visual Regression Testing Basics7 questions · 15 min · pass mark 70%
- Module 6 quiz: Integrating Tests into CI7 questions · 15 min · pass mark 70%
- Module 7 quiz: Reporting and Test-Data Management7 questions · 15 min · pass mark 70%
- AI-Powered Test Automation (Selenium + GenAI Test Generation) — final assessment20 questions · 40 min · pass mark 70%