Playwright Testing Online Assessment Questions & Answers
40 questions for the online assessment stage — 13 easy, 27 medium.
About the online assessment round
Most companies start with an online test: aptitude and reasoning, a few MCQs on core Playwright Testing concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
Tips for the online assessment round
- Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task.
- Read every option before answering; tests often include two nearly correct choices.
- Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
- Attempt the questions you are sure about first, then return to the harder ones.
What happens before and after await use() in a fixture?
Show answer
What are Partial, Pick, Omit and Record used for?
Show answer
What can automated accessibility tools not catch?
Show answer
How do you filter a list of locators by text or by a child element?
Show answer
How do you run one group of tests serially while the rest of the suite runs in parallel?
Show answer
How can you view a trace file without a local Playwright install?
Show answer
How do you test API error scenarios?
Show answer
How do you publish the Playwright HTML report from a CI pipeline?
Show answer
Write a component test that checks a required field shows an error on blur.
Show answer
What are generics in TypeScript?
Show answer
Write a test that deletes a record and confirms it is gone.
Show answer
How do you handle errors in async code?
Show answer
CI runners have 2 CPU cores and workers is set to 8. Tests start timing out randomly. Why?
Show answer
What are test.skip, test.fixme and test.fail?
Show answer
How do you mock third-party APIs in UI tests?
Show answer
What is the difference between map, filter and reduce?
Show answer
How do you open a trace file?
Show answer
How do you tag and filter tests?
Show answer
What is APIRequestContext?
Show answer
How do you handle date pickers and custom dropdowns?
Show answer
How does URL matching work in page.route?
Show answer
How is toBeVisible different from toBeAttached?
Show answer
How do you test a site protected by HTTP basic authentication?
Show answer
How do you test pagination or chained API calls?
Show answer
What does npx playwright test --last-failed do?
Show answer
How do you handle secrets such as passwords and tokens in CI?
Show answer
Write a custom fixture that gives a logged-in page.
Show answer
What does fullyParallel change?
Show answer
How do you override options like baseURL or viewport for one file?
Show answer
Why are component tests usually faster than end-to-end tests?
Show answer
How do you block images and fonts to speed up tests?
Show answer
What is UI mode and how is it different from --debug?
Show answer
How do you open an HTML report downloaded from a CI artifact?
Show answer
How do you manage test data and environments?
Show answer
What are fixtures and how do you create a custom one?
Show answer
Why should you start waitForResponse before the action that triggers it?
Show answer
Write a test that compares only the pricing card instead of the full page.
Show answer
Why should the Playwright Docker image version match your package version?
Show answer
How do you test geolocation, permissions and time zones?
Show answer
Frequently asked questions
What happens in the Playwright Testing online assessment round?
Most companies start with an online test: aptitude and reasoning, a few MCQs on core Playwright Testing concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
How do I clear the online assessment round?
Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task. Read every option before answering; tests often include two nearly correct choices. Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.