โ† All prompt kits
Free ยท 15 copy-paste prompts

Selenium (C#) โ€” AI Prompt Kit

Copy each prompt and paste it into ChatGPT or Claude. Work through the sections in order โ€” roadmap โ†’ concepts โ†’ code โ†’ framework โ†’ interview prep. Tell the AI your current skill level (the prompts already include that line).

Your Learning Roadmap

ROADMAP PROMPT โ€” Run this first

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 C#
- Available study time per day: [30 mins / 1 hour / 2 hours]

Create a structured 10-12-week learning roadmap covering:
1. C# fundamentals for testers (only what I need)
2. Selenium with C# 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.

Learn Concepts From Scratch

Prompt 2A-1: C# Basics for Selenium Testers

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

Teach me only the C# I need to write Selenium tests. Practical only.

Cover in order:
1. Variables and data types (string, int, bool, var)
2. Methods โ€” void and return types
3. Classes and properties โ€” for Page Object Model
4. If/else and comparison operators
5. Foreach and for loops
6. Exception handling (try/catch/finally)
7. Namespaces and using statements

Rules: testing analogies, one explanation + one code example each.
Start with variables. Wait for 'next' before continuing.

Prompt 2B-1: Setup and First Selenium C# Test

You are a Selenium C# expert trainer.

Walk me through setting up a Selenium C# project from scratch.

Cover:
1. Visual Studio vs VS Code โ€” which to use and why
2. Create a new .NET project โ€” correct structure for Selenium
3. Install Selenium.WebDriver and WebDriverManager via NuGet
4. NUnit vs MSTest โ€” pros and cons, which to choose
5. Write and run my first login test

Show complete setup. Show first test with every line explained.
Show how to run with 'dotnet test' from command line.

Prompt 2B-2: Locators, Waits, and Common Patterns

You are a Selenium C# trainer.

Teach me locators and waits in Selenium C# โ€” most critical for stable tests.

LOCATORS: all strategies in C# syntax, decision guide, CSS vs XPath.

WAITS:
- Implicit wait in C#
- WebDriverWait + ExpectedConditions in C#
  Top 5 conditions with C# examples
- Thread.Sleep โ€” why dangerous

Show WRONG vs CORRECT for: clickable wait, disappear wait, text change.
End with a wait decision guide and top 3 C# Selenium wait mistakes.

Prompt 3A-1: AI-Assisted Selenium C# Test Writing

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

I will describe a scenario in plain English.
Write the complete Selenium C# test, explain every line,
point out edge cases, suggest improvements.

My scenario: [DESCRIBE YOUR SCENARIO HERE]
Use https://www.saucedemo.com 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 NUnit data-driven variations?

Prompt 3B-1: Debug My Failing Selenium C# Test

You are an expert Selenium C# debugger.
Failing code: [PASTE HERE]
Error message: [PASTE HERE]
Identify cause, explain why, show corrected code, prevent in future.

Prompt 4-1: Framework Architecture

You are a Principal SDET expert in Selenium C# frameworks.

Guide me through building a production-ready Selenium C# framework.

Cover:
1. .NET solution structure โ€” show exact folder tree
2. NuGet packages needed and why
3. Page Object Model โ€” BasePage + example pages
4. NUnit TestFixture and test lifecycle attributes
5. App.config or appsettings.json for environment management
6. ExtentReports for HTML reporting
7. Parallel execution with NUnit

Show complete structure with explanations.
Top 3 Selenium C# framework mistakes?

Prompt 4-2: Page Object Model in C#

You are a Selenium C# POM expert.
Build a complete POM for login + dashboard using PageFactory.
Step 1: BasePage with driver methods
Step 2: LoginPage with [FindsBy] attributes
Step 3: DashboardPage
Step 4: NUnit test using both pages
Step 5: Maintenance advantage example
Show all code with comments. Give practice exercise.

Prompt 4-3: CI/CD with Azure DevOps and GitHub Actions

You are a DevOps and Selenium C# expert.

Integrate my Selenium C# project with CI/CD.

Option 1 โ€” Azure DevOps: complete azure-pipelines.yml
Install .NET, build, run tests headless, publish results.

Option 2 โ€” GitHub Actions: complete workflow.yml for .NET Selenium

Show all files with comments.
Top 3 CI failure reasons for Selenium C# tests?

Interview Preparation

Prompt 5-1: Mock Interview โ€” Junior Level

You are a senior SDET interviewer at a product company.

Conduct a mock Selenium C# 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

You are a Principal Engineer interviewing for a Senior SDET role.

Conduct a senior-level Selenium C# 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

You are a career coach specialising in QA and SDET roles in India.

I am transitioning to automation using Selenium C# 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

AI Concepts And AI-Assisted Testing

Prompt 6-1: AI in Testing โ€” Interview Answer Framework

You are an expert on AI in software testing.

Teach me how to answer AI-related questions in a Selenium C# 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

You are a senior SDET who uses AI daily in Selenium C# 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

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.

Want the matching interview Q&A and coding kits for Selenium? Browse the kits โ†’

Want new prompt kits in your inbox?

Get new prompt kits, QA resources, and guides as they drop. No spam.