QA Engineer Interview Questions & Answers
40 questions for QA Engineer interviews — 28 easy, 12 medium.
About the QA Engineer role
Ensures product quality through a mix of manual exploration and automated checks. A Playwright-focused QA engineer turns test cases into reliable automated tests, verifies APIs, reports clear bugs and keeps regression suites up to date. Interviews test testing fundamentals, writing simple Playwright tests, assertions, basic API checks and how you investigate and report failures. Clear communication with developers and attention to detail are tested through scenario questions about real defects.
What is the difference between getByText and getByLabel?
Show answer
How do you work with iframes?
Show answer
How do you assert an element's CSS class, attribute or value?
Show answer
A locator matches three Delete buttons and the test fails with a strict mode violation. How do you fix it?
Show answer
How do you change the default assertion timeout?
Show answer
How do you add, read and clear cookies in a browser context?
Show answer
What are nth(), first() and last(), and why are they risky?
Show answer
In what order do hooks and fixtures run?
Show answer
How do you send a POST request with a JSON body?
Show answer
When should you use getByTestId?
Show answer
Write a test that updates a user with PUT and verifies the change.
Show answer
Write code to fill a login form using label-based locators.
Show answer
What is the difference between toHaveText and toContainText?
Show answer
Write a beforeEach hook that opens the home page and accepts the cookie banner.
Show answer
How is toBeVisible different from toBeAttached?
Show answer
What is the difference between page.goto and page.waitForURL?
Show answer
How do you send query parameters in an API request?
Show answer
How do you handle file uploads and downloads?
Show answer
What does the waitUntil option of page.goto do?
Show answer
Tell me about a time you automated a difficult UI flow.
Show answer
What does test.describe do?
Show answer
What does the channel option do?
Show answer
How do you install and start a Playwright project?
Show answer
Why did you choose to build a career in Playwright automation?
Show answer
What are idempotent HTTP methods and why do they matter in testing?
Show answer
What happens before and after await use() in a fixture?
Show answer
Tell me about a time you replaced brittle locators in an existing suite.
Show answer
How do you select an option from a native select dropdown?
Show answer
How does Playwright compare with Selenium and Cypress?
Show answer
How do you handle dialogs such as alerts?
Show answer
How do you assert the number of rows in a table?
Show answer
What does the mount fixture return?
Show answer
What is locator strictness in Playwright?
Show answer
How do you handle a new tab?
Show answer
Write a test that logs in and checks the dashboard heading.
Show answer
Tell me about a time you learned a new testing tool under a deadline.
Show answer
How do you make an API request in Playwright?
Show answer
What does the open option of the HTML reporter control?
Show answer
What is Playwright and which browsers does it support?
Show answer
Frequently asked questions
What does a QA Engineer do?
Ensures product quality through a mix of manual exploration and automated checks. A Playwright-focused QA engineer turns test cases into reliable automated tests, verifies APIs, reports clear bugs and keeps regression suites up to date. Interviews test testing fundamentals, writing simple Playwright tests, assertions, basic API checks and how you investigate and report failures. Clear communication with developers and attention to detail are tested through scenario questions about real defects.
Which skills are tested in a QA Engineer interview?
Expect questions on Test case design, Playwright basics, Web-first assertions, API checks, Bug reporting. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a QA Engineer interview?
Revise Playwright Core, Locators and Assertions, API Testing first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.