AI-POWERED LEARNING PROMPT KIT
PLAYWRIGHT
Python Edition
From Manual Tester to Playwright Python SDET — Let AI Teach You
✅ Learn concepts from scratch
✅ Write code independently and with AI
✅ Build a full pytest framework
✅ Prepare for SDET interviews
✅ AI concepts in testing
By Sreenidhi Rajakrishnan
@sreenidhirajakrishnan | QA Engineer & Content Creator | 105K+ Instagram
00 HOW TO USE THIS KIT
Each prompt in this kit is designed to make an AI tool — ChatGPT or Claude — act as your personal trainer. The
prompts are structured so the AI gives you a clear plan, teaches step by step, and adapts to your pace.
▸ Copy the prompt exactly as written
▸ Paste it into ChatGPT (GPT-4o) or Claude (Claude Sonnet or higher)
▸ Read the output carefully — ask follow-up questions freely
▸ Work through the sections in order for best results
▸ You do not need any other resource — these prompts are your complete curriculum
Pro tip: Use Claude for longer explanations and framework design. Use ChatGPT for code generation and
debugging.
Important: Always tell the AI your current skill level. The prompts already include this — do not remove that
line.
01 YOUR LEARNING ROADMAP
Start here. This prompt generates your personalised learning roadmap before you write a single line of code.
Save the output — it becomes your study plan.
ROADMAP PROMPT — Run this first
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are an expert SDET trainer with 15 years of experience.
I am a manual QA engineer transitioning into automation. My background:
- [X] years of manual testing experience
- Familiar with: [JIRA / test cases / regression testing / etc.]
- Programming knowledge: [none / basic / intermediate]
- Goal: become job-ready using Playwright with Python
- Available study time per day: [30 mins / 1 hour / 2 hours]
Create a structured 8-10-week learning roadmap covering:
1. Python fundamentals for testers (only what I need)
2. Playwright with Python core concepts and architecture
3. Writing my first tests
4. Framework design and best practices
5. CI/CD integration
6. Interview preparation
7. AI concepts in testing for 2025/2026
For each week provide:
- Topic focus
- What I will be able to do by end of week
- 2-3 practice tasks
- Free resources to use
Format as a clean table then a detailed week-by-week breakdown.
Adjust timeline based on my daily study time.
Be specific — this is my actual study plan, not a generic template.
Once the AI generates your roadmap, save it. Screenshot it. This is your complete study plan.
02 LEARN CONCEPTS FROM SCRATCH
Playwright Python with pytest is powerful and growing fast. These prompts teach you everything you need.
PHASE 2A — Python for Playwright
Prompt 2A-1: Python for Playwright Testers
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Python instructor teaching a manual QA engineer.
Teach me only the Python I need to write Playwright tests.
Cover in order:
1. Variables and data types
2. Functions including async def — critical for Playwright
3. Classes and objects — for Page Object Model
4. Async/await in Python — explain with a real-world analogy first
5. Lists and dictionaries
6. Exception handling (try/except)
7. Virtual environments and pip
Rules: testing analogies, one explanation + one code example each.
Start with variables. Wait for 'next' before continuing.
PHASE 2B — Playwright Python
Essentials
Prompt 2B-1: Playwright Python with pytest — Setup and Core Concepts
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Playwright Python expert.
Teach me how Playwright Python works with pytest.
Cover:
1. Install playwright and pytest-playwright — exact commands
2. Sync vs async Playwright Python — which to use and why
3. The built-in page fixture from pytest-playwright
4. How auto-waiting works in Python — the 5 conditions
5. Locators in Python — same concepts as JS/TS but Python syntax
6. [Link] / [Link] equivalent configuration
Show my first complete Playwright Python test.
Show how to run with pytest from terminal.
What makes Playwright Python better than Selenium Python for new projects?
Prompt 2B-2: [Link] for Playwright Python
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Playwright Python pytest expert.
Teach me how to set up [Link] for Playwright Python.
Cover:
1. Browser fixture — launch and close Chrome automatically
2. Page fixture with custom viewport and base URL
3. Authentication fixture — login once and reuse session
4. Parametrize for multiple browsers
5. pytest marks for test tagging
Show complete production-ready [Link].
Show test files using these fixtures.
Top 3 [Link] mistakes Playwright Python beginners make?
Prompt 2B-3: Network Interception in Playwright Python
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Playwright Python advanced trainer.
Teach me network interception in Playwright Python.
Cover:
1. [Link]() — intercept and mock API responses
2. Test how UI handles a 500 error from the server
3. Test loading states with delayed responses
4. Block unwanted requests (analytics, ads) to speed up tests
5. API testing with Playwright Python APIRequestContext
Show complete code examples. Show WRONG vs CORRECT approaches.
What is the difference between [Link]() and a separate requests library?
03 WRITE CODE — INDEPENDENTLY AND WITH AI
Prompt 3A-1: AI-Assisted Playwright Python Code Writing
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a senior Playwright Python SDET acting as my coding partner.
I will describe a scenario in plain English.
Write the complete Playwright Python test, explain every line,
point out edge cases, suggest improvements.
My scenario: [DESCRIBE YOUR SCENARIO HERE]
Use [Link] if I do not specify a site.
After writing, ask:
- Do I want negative test cases?
- Do I want Page Object Model?
- Do I want pytest parametrize variations?
Prompt 3B-1: Debug My Failing Playwright Python Test
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are an expert Playwright Python debugger.
Failing code: [PASTE HERE]
Error: [PASTE HERE]
Identify cause, explain why, show fix, prevent in future.
04 BUILD A FULL PLAYWRIGHT PYTHON FRAMEWORK
Prompt 4-1: Framework Architecture
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Principal SDET expert in Playwright Python.
Guide me through building a production-ready Playwright Python framework.
Cover:
1. Project folder structure — exact tree
2. [Link] — packages and why
3. Page Object Model in Python with Playwright
4. [Link] for browser + auth fixtures
5. [Link] configuration
6. allure-pytest for reporting
7. GitHub Actions CI/CD for Python
Show complete structure. Explain every file.
Top 3 Playwright Python framework mistakes?
Prompt 4-2: Page Object Model in Playwright Python
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Playwright Python POM expert.
Build a complete POM for login + dashboard flow.
Step 1: BasePage with common Playwright methods
Step 2: LoginPage with Playwright locators
Step 3: DashboardPage
Step 4: pytest test using both pages
Step 5: How Python POM compares to Selenium Python POM
Show all code with comments. Give practice exercise.
Prompt 4-3: Authentication Strategy in Playwright Python
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Playwright Python authentication expert.
Teach me how to handle authentication properly in Playwright Python.
Cover:
1. Why logging in through the UI in every test is slow and brittle
2. Storage state — login once, save to [Link], reuse in all tests
Show globalSetup equivalent in Python
3. How to use different auth states for different user roles
admin_auth.json, user_auth.json — test RBAC efficiently
4. API-based authentication — POST to login API, set token
Show complete code for storage state implementation.
The key line: what does storage state eliminate?
05 INTERVIEW PREPARATION
These prompts prepare you for Playwright Python interview questions from junior to senior level.
Prompt 5-1: Mock Interview — Junior Level
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a senior SDET interviewer at a product company.
Conduct a mock Playwright Python interview with me at junior SDET level.
Rules:
- Ask one question at a time
- Wait for my answer before giving feedback
- After my answer: tell me what was good, what was missing, give the ideal
answer
- Ask 10 questions total
Include: 3 conceptual, 3 practical scenario, 2 comparison, 2 code-reading
questions.
Start now. Ask your first question.
Prompt 5-2: Mock Interview — Senior SDET Level
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a Principal Engineer interviewing for a Senior SDET role.
Conduct a senior-level Playwright Python mock interview.
Focus on: framework architecture decisions, performance and scalability,
CI/CD pipeline design, flaky test management, test strategy, mentoring.
Rules: one question at a time, wait for answer, give structured feedback.
8 questions total. Begin.
Prompt 5-3: Salary Negotiation for Automation Roles in India
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a career coach specialising in QA and SDET roles in India.
I am transitioning to automation using Playwright Python and preparing for
interviews.
My profile:
- [X] years manual testing experience
- Transitioning to automation
- Target role: [SDET / Automation Engineer / Senior QA]
- Target city: [Chennai / Bangalore / Hyderabad / Remote]
Provide:
1. Current market salary range for my profile in India (2025/2026 data)
2. Exact words to say when asked for expected CTC
3. How to handle an offer below my expectation
4. What NOT to say in salary discussions
5. How to negotiate when moving from manual to automation roles
06 AI CONCEPTS AND AI-ASSISTED TESTING
AI concepts are increasingly asked in 2025 and 2026 SDET interviews. These prompts prepare you to answer
them and use AI to work faster.
Prompt 6-1: AI in Testing — Interview Answer Framework
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are an expert on AI in software testing.
Teach me how to answer AI-related questions in a Playwright Python SDET
interview.
Cover these with ideal interview answers:
1. How is AI changing test automation in 2025/2026?
2. How do you use AI tools like ChatGPT or Claude in daily testing work?
3. What is visual AI testing and which tools support it?
4. How would you test an AI-powered feature as an SDET?
5. What is self-healing test automation and how does it work?
For each: concept → interview answer → specific tool to name → the one line
that impresses.
Format: Question → Concept → Answer → Key Line
Prompt 6-2: Generate Tests from Requirements Using AI
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a senior SDET who uses AI daily in Playwright Python workflows.
Teach me to generate tests from user stories using AI.
Walk through your complete workflow:
Step 1: Turn a user story into testable requirements
Step 2: Exact prompt to generate test cases from the story
Step 3: Exact prompt to turn test cases into automation code
Step 4: How to review and validate AI-generated code
Step 5: What AI gets wrong most often and how to catch it
Live example using this user story:
'As a user, I want to reset my password so I can regain
access to my account if I forget my credentials.'
Show: user story → test cases → automation code.
Then ask me to try with a story of my own.
Prompt 6-3: Build Your AI-Assisted Daily Testing Workflow
COPY THIS PROMPT → Paste into ChatGPT or Claude
You are a senior SDET who integrates AI into daily work.
Build a practical AI-assisted workflow for my daily testing tasks.
Cover:
1. Using ChatGPT/Claude for test case generation
- The exact prompt structure that works
- What to provide and what AI cannot figure out alone
2. Using AI for professional bug report writing from rough notes
3. Using AI for test data generation
4. Using AI for automation code review — finding anti-patterns
5. The daily AI habits of a productive SDET in 2025
End with: the one AI skill every QA engineer should master first.
YOU HAVE EVERYTHING YOU NEED.
These prompts are your complete Playwright Python curriculum. Run them in order. Take your time. Ask follow-up
questions freely.
Want the full Playwright SDET Interview Kit?
Interview Q&A kits, resume templates, and career resources for QA engineers.
DM or comment on Instagram @sreenidhirajakrishnan
Sreenidhi Rajakrishnan
Automation Architect | TEDx Speaker | QA Content Creator | 105K+ Instagram