Playwright TypeScript Interview Bundle
Clear the coding round and revise every concept answer, for Playwright TypeScript roles.
The Coding Round Playbook and the Last-Minute Notes together. Rs 698 if bought separately.
- 2 PDFs
- Playwright TypeScript
- Buy
- Instant download
- Prepare part by part
One interview, three rounds
Most SDET interview loops test you in this order:
- Concept questions on Playwright and TypeScript.
- A live coding round with logic and Playwright tasks.
- Scenario and framework questions with a senior engineer.
With this bundle you cover
- 40 coding round programs with approach, solution and output.
- All 48 concept answers in short form with every diagram, for the night before.
- The free Playwright TypeScript Interview Playbook pairs with it for full answers.
Look inside
The first 3 pages of 46, exactly as you get them. Swipe, then tap a page to enlarge it.
Buy to unlock all 46 pages
Full table of contents
Every part of every PDF in this bundle, exactly as they appear in the PDFs. Tap a part to see what it covers.
Playwright TypeScript Coding Round Playbook9 parts, 40 programs
Part 1. String Programs6 programs
- Your interviewer bans .reverse(). Write a function that reverses a string with a plain loop.
- A form field must accept palindromes like "A man, a plan, a canal: Panama". Write the check that ignores case, spaces and punctuation.
- Build a character frequency report for a test string, skipping spaces.
- A log line has repeated characters. Write a function that returns the first character that appears only once.
- Two labels must use exactly the same letters in a different order. Write a function that confirms it.
- A page title must be shown in Title Case. Write a function that converts a messy sentence, even with double spaces.
Part 2. Array Programs5 programs
- An API returned some order ids more than once. Write a function that lists every id that repeats.
- Find the second highest score in a list in a single pass, without sorting it.
- A test matrix lists the same browser twice, and a student list has repeated ids. Remove the repeats but keep the first-seen order.
- Test run ids should go from 1 to n with no gaps, but one is missing. Write a function that finds it.
- Given a list of prices and a coupon value, return the positions of the two prices that add up to it, in one pass.
Part 3. Objects and Maps4 programs
- Write a program to group an array of objects by a property.
- Write a program to find the most frequent words in a paragraph.
- Write a program to check if two objects are deeply equal.
- Write a program to flatten a nested object into dot-separated keys.
Part 4. Logic and Math4 programs
- Write a program to print FizzBuzz from 1 to 15.
- Write a program to print the first n numbers of the Fibonacci series.
- Write a program to print all prime numbers up to n.
- Write a program to reverse a number and find the sum of its digits.
Part 5. Async and Promises4 programs
- Write a program that runs async tasks one after another, then all in parallel, and compare the time.
- Write a function that fails if a Promise takes longer than a given time.
- Write a program that checks several URLs and reports which passed and which failed, without stopping at the first failure.
- Write a program that runs many async tasks but only N at a time.
Part 6. Playwright UI Programs6 programs
- Write a Playwright program to collect all links on a page and find the broken ones.
- Write a Playwright program to verify a table column is sorted after clicking its header.
- Write a Playwright program to count products on a page and calculate the total price.
- Write a Playwright program to handle a link that opens in a new tab.
- Write a Playwright program to read all dropdown options and select one.
- Write a Playwright program to scroll an infinite list until all items are loaded.
Part 7. Playwright API Programs4 programs
- Write a Playwright program that creates, reads, updates and deletes a record through the API.
- Write a Playwright program to compare data shown in the UI with the data from the API.
- Write a Playwright program to check the structure and types of an API response.
- Write a Playwright program to log in through the API once and reuse the token in later calls.
Part 8. Utility Programs for Frameworks4 programs
- Write a retry helper that retries an async function with a growing delay.
- Write a program to generate unique random test data (email, phone, name).
- Write date helper functions: format a date as DD-MM-YYYY and add days to a date.
- Write a program to read test data from a JSON file and filter the cases to run.
Part 9. Framework Patterns3 programs
- Write a custom fixture that gives every test a logged-in dashboard page object.
- Write a typed config loader that reads environment variables with safe defaults.
- Write a test data builder using the builder pattern.
Playwright TypeScript Last-Minute Notes12 parts, 48 questions
Part 1. Playwright Basics and Architecture4 questions
- Your company runs Selenium. Why are teams like yours moving to Playwright?
- One test must show an admin and a customer working at the same time. How do Browser, BrowserContext and Page make that possible?
- Which browsers does Playwright support, and what is the difference between bundled Chromium and the Chrome channel?
- How do you set up a Playwright TypeScript project from scratch?
Part 2. TypeScript for Testers5 questions
- Why use TypeScript instead of JavaScript for Playwright tests?
- What are interfaces and types, and where do you use them in a test framework?
- A test sometimes fails with "Target closed" and sometimes passes. You suspect a missing await. Explain what is going on.
- What are generics, and how do they help in a test framework?
- How do you manage environment config and secrets in a Playwright TypeScript framework?
Part 3. Locators5 questions
- Your element handle throws errors after the page re-renders. Why do Playwright locators not have this problem?
- Which locator strategy do you recommend, and in what order?
- How do you work with lists and tables using filter, nth and chaining?
- A card payment form sits inside an iframe and a cookie banner lives in shadow DOM. How do you automate both?
- How do you generate and debug locators quickly?
Part 4. Auto-waiting and Assertions5 questions
- What is auto-waiting, and what does Playwright check before it performs an action?
- What are web-first assertions, and why are they better than reading a value and checking it?
- Explain soft assertions, expect.poll and toPass.
- What are the different timeouts in Playwright, and what are their defaults?
- How do you do visual testing with toHaveScreenshot?
Part 5. Test Runner, Config and Projects4 questions
- Walk me through the important settings in playwright.config.ts.
- You must run one suite on Chrome, Safari and a phone viewport, after a login step. How do projects handle this?
- How do you organise and filter tests with describe, tags and annotations?
- How do you run tests in order when a flow truly needs it?
Part 6. Fixtures and Hooks3 questions
- Every spec file starts with the same 20 lines of setup. How do Playwright fixtures fix this?
- What is the difference between test-scoped and worker-scoped fixtures? What is an auto fixture?
- When do you use beforeAll and beforeEach hooks instead of fixtures?
Part 7. Page Object Model and Framework Design3 questions
- The same login locators are copied into 30 test files. How would you refactor this with the Page Object Model?
- How would you design a scalable Playwright framework? Walk me through the folder structure.
- Two parallel tests keep editing the same student account and fail at random. How should test data be managed?
Part 8. Network Mocking and API Testing5 questions
- How do you mock or change network responses with page.route?
- After clicking Place order, you need the order id from the API response. How do you capture it reliably?
- Can Playwright test a REST API without opening a browser? Show how.
- You want to create an order quickly through the API, then check it on screen. How do you mix API and UI in one test?
- What is HAR recording and replay, and when would you use it?
Part 9. Authentication and Sessions3 questions
- Every test spends 6 seconds on the login screen. How do you remove that cost?
- How do you test an app with several user roles?
- How do you handle OTP, 2FA and captcha in automated tests?
Part 10. Debugging and Flaky Tests4 questions
- A test failed in last night's run. Which tools do you open, and in what order?
- What is the Trace Viewer, and what does it show?
- Your checkout test is green on your laptop and red in CI every third run. Walk me through your investigation.
- Your suite has 15 tests that fail at random. Which causes do you look for, and how do you fix each one?
Part 11. Parallel Runs, CI/CD and Docker4 questions
- You set workers to 4. What actually runs in parallel, and what must your tests do to stay safe?
- Your suite takes 40 minutes on one machine. How do you split it across 4 CI machines and still get one report?
- Your team wants every pull request tested automatically. What does a Playwright pipeline look like?
- Screenshots differ between your laptop and CI because fonts render differently. How does running Playwright in Docker fix this?
Part 12. Playwright with AI3 questions
- Your manager asks how an AI assistant could explore the app and draft tests. Explain Playwright MCP.
- How would you use AI in your testing work without lowering quality?
- What are Playwright test agents (planner, generator, healer)?
A real page from the playbook
Write a Playwright program to verify a table column is sorted after clicking its header.
- Click the column header.
- Read every cell of that column with allTextContents.
- Convert the texts to numbers if needed.
- Compare with a sorted copy of the same list.
await page.getByRole('columnheader', { name: 'Price' }).click();
const cells = page.locator('table tbody tr td:nth-child(3)');
const prices = (await cells.allTextContents())
.map(t => Number(t.replace(/[^0-9.]/g, '')));
const sorted = [...prices].sort((a, b) => a - b);
expect(prices).toEqual(sorted);Remember: Copy before sorting ([...prices]) so you compare against the original order.
Common mistake: Calling prices.sort() directly. It sorts the original array, so the check always passes.
Who it is for
This is for you if
- You are preparing for SDET or automation interviews and want everything for your stack in one purchase.
It is not for you if
- You need only one of the PDFs. Each one is also sold on its own.
What is inside
- Playwright TypeScript Coding Round Playbook40 coding round programs, from strings and arrays to real Playwright tasks, each with approach, solution and output.
- Playwright TypeScript Last-Minute NotesAll 48 interview answers in short form, with every diagram. For the night before your interview.
PDFs. Works on phone and laptop.
In this bundle
Buying the bundle gives you every product above.

From Jatin
Jatin Shharma
12+ years in test automation at Infosys, HERE Maps (originally Nokia Maps) and B2X. Client work for BMW and Audi, including self-parking car automation.
More about JatinQuestions
What do I get?
Every PDF listed above, each with its own download link in your email and in My purchases.
What format is it?
A PDF you can read on your phone or laptop and print if you like. The download link comes to your email and stays in My purchases.
Do I get updates?
Yes. Everyone who has it gets every update, and fresh links always download the newest version.
Do I get separate files?
Yes. Every PDF in the bundle is its own file, each with its own download link in your email and in My purchases.
Is this generic content I can find online?
No. Every answer is written for the way SDET interviews are run: the points to say, the code to show, and the mistake that loses marks.
Everything for the interview, one price
The saving is real: the bundle costs less than the PDFs bought one by one.