0% found this document useful (0 votes)
9 views9 pages

Selenium Python Prompt Kit

The AI-Powered Learning Prompt Kit for Selenium Python is a comprehensive curriculum designed to transition manual testers into Selenium Python engineers. It includes structured prompts for personalized learning roadmaps, coding practices, framework building, interview preparation, and AI concepts in testing. The kit emphasizes using AI tools like ChatGPT and Claude as personal trainers throughout the learning process.

Uploaded by

01workagent
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views9 pages

Selenium Python Prompt Kit

The AI-Powered Learning Prompt Kit for Selenium Python is a comprehensive curriculum designed to transition manual testers into Selenium Python engineers. It includes structured prompts for personalized learning roadmaps, coding practices, framework building, interview preparation, and AI concepts in testing. The kit emphasizes using AI tools like ChatGPT and Claude as personal trainers throughout the learning process.

Uploaded by

01workagent
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

AI-POWERED LEARNING PROMPT KIT

SELENIUM
Python Edition
From Manual Tester to Selenium Python Engineer — 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 Selenium 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. Selenium 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

Python is one of the most beginner-friendly languages. These prompts teach you only what you need for
Selenium automation.

PHASE 2A — Python for Testers

Prompt 2A-1: Python Basics for Selenium Testers

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Python instructor teaching a manual QA engineer with zero coding
background.

Teach me only the Python I need for Selenium automation. Practical only.

Cover in order:
1. Variables and data types (str, int, bool, list, dict)
2. Functions (def, parameters, return)
3. Classes and objects — for Page Object Model
4. If/else and comparison operators
5. For loops and list iteration
6. Exception handling (try/except/finally)
7. Imports and modules
8. Virtual environments — what they are and setup steps

Rules: testing analogies, one explanation + one code example each,


ask after each if I want practice, all examples relate to web testing.

Start with variables. Wait for 'next' before continuing.

PHASE 2B — Selenium Python


Essentials

Prompt 2B-1: Setup and First Selenium Python Test

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Selenium Python expert trainer.

Walk me through setting up Selenium Python from scratch.

Step 1: Install Python, create virtual environment


Step 2: Install selenium and webdriver-manager via pip
Step 3: Write my first test — login to [Link]
Step 4: Run with pytest from terminal
Step 5: Understand passing and failing output

Show setup commands for Windows and Mac/Linux separately.


Show complete first test with every line explained.
Give me 3 variations to try on my own — no answers, let me try first.

Prompt 2B-2: pytest + [Link] for Selenium

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Selenium Python pytest expert.

Teach me how to use pytest properly with Selenium Python.

Cover:
1. What [Link] is and why it exists
2. Browser fixture that automatically launches and quits Chrome
3. Scope levels (function, class, module, session) — when to use each
4. Parametrize — run same test with multiple data sets
5. pytest marks — tag tests and run subsets
6. pytest-html report generation

Show complete [Link]. Show a test file using that fixture.


Show the command to run only smoke tests.
Top 3 pytest mistakes Selenium Python beginners make?

Prompt 2B-3: Locators and Waits in Selenium Python


COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Selenium Python trainer.

Teach me locators and waits — the most critical concepts for stable tests.

LOCATORS: All strategies with Python syntax, when to use each,


CSS vs XPath decision guide.

WAITS:
- Implicit wait in Python — how to set it
- WebDriverWait + expected_conditions in Python
Show top 5 conditions with examples
- Why [Link]() is dangerous

Show WRONG way then CORRECT way for: wait for clickable,
wait for element to disappear, wait for text to change.

End with a wait decision guide. Top 3 wait mistakes?

03 WRITE CODE — INDEPENDENTLY AND WITH AI

Write real Selenium Python tests and use AI as your coding partner.

Prompt 3A-1: AI-Assisted Selenium Python Test Writing

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a senior Selenium Python SDET acting as my coding partner.

I will describe a scenario in plain English.


You will: write the complete Selenium 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 me:


- Do I want negative test cases?
- Do I want this converted to Page Object Model?
- Do I want data-driven variations with pytest parametrize?

Prompt 3B-1: Debug My Failing Selenium Python Test

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are an expert Selenium Python debugger.

My test is failing. Help me debug it.


Failing code: [PASTE HERE]
Error message: [PASTE HERE]

Identify the failure cause, explain why it happens,


show corrected code, tell me how to prevent it.
Suggest one defensive practice to add.

04 BUILD A FULL SELENIUM PYTHON FRAMEWORK

Build a production-ready Selenium Python pytest framework.

Prompt 4-1: Framework Architecture

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Principal SDET with Selenium Python expertise.

Guide me through building a production-ready Selenium Python framework.

Cover:
1. Project folder structure — exact tree
2. [Link] — packages and why each is needed
3. Page Object Model — BasePage + example page classes
4. [Link] design for browser and environment management
5. [Link] configuration
6. allure-pytest for reporting
7. .env files for environment variables

Show complete folder tree with explanations.


Top 3 Selenium Python framework mistakes?

Prompt 4-2: Page Object Model in Python

COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a Selenium Python POM expert.

Build a complete POM for login + dashboard flow.

Step 1: BasePage class with common Selenium methods


Step 2: LoginPage class with locators and action methods
Step 3: DashboardPage class
Step 4: pytest test file using both pages with fixtures
Step 5: Maintenance advantage — concrete locator change example

Show all code with comments. Give me a practice exercise.

Prompt 4-3: CI/CD with GitHub Actions


COPY THIS PROMPT → Paste into ChatGPT or Claude

You are a DevOps and Selenium Python expert.

Build a GitHub Actions workflow for my Selenium Python project.

Complete .github/workflows/[Link] that:


- Triggers on PR and push to main
- Sets up Python and installs dependencies
- Runs tests headless with pytest
- Uploads HTML report as artifact

Show complete file with comments.


Top 3 CI failure reasons for Selenium Python?

05 INTERVIEW PREPARATION

These prompts prepare you for Selenium 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 Selenium 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 Selenium 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 Selenium 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 Selenium 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 Selenium 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 Selenium Python curriculum. Run them in order. Take your time. Ask follow-up
questions freely.

Want the full 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

You might also like