Test automation skill check
Practise test automation: what to automate, Playwright selectors and waits, flaky tests, API tests, and running them in CI, with short tests you read.
15
Questions
14 min
Timer can't pause
Multiple choice
Playwright
Choose a level
Question type
Topics
- What to automate
- Playwright
- Selectors
- Waits and flakes
- Assertions
- API testing
- Test data
- CI
Do
Use scratch paper or a notepad to work things out. Skip a question and come back to it later.
Don't
Run the code or look up answers during the check. Open the check in more than one tab or window.
Easy · Mixed · 15 questions · 14 min
By starting, you agree to the Terms and Privacy Policy.
Practice checks each answer as you go, with an explanation. The exam is checked when you submit; 9 of 15 passes and earns a certificate.
Checking your levels…
Certificates come from the certified exam: pass with 9 of 15 while signed in. View a sample certificate.
Sample Test automation questions with answers
These are never used in a check, so seeing their answers here won't give anything away.
Question 1 · Easy · What to automate
According to standard testing pyramid principles, which scenario is best suited for an end-to-end browser automation test in Playwright rather than a lower-level unit test?- A.Verifying that a user can complete a full multi-step checkout flow from product selection to receiving an order confirmation.
- B.Testing that an internal sorting algorithm orders an array of objects by price ascending.
- C.Checking that a state management reducer returns an updated state object when an action is dispatched.
- D.Validating that a utility function formats various date strings into ISO 8601 format correctly.
Show answer
A. Verifying that a user can complete a full multi-step checkout flow from product selection to receiving an order confirmation.
End-to-end browser tests should focus on critical user journeys across multiple integrated system components, such as checkout. Isolated business logic, algorithmic sorting, and state transitions are faster, cheaper, and more reliably tested via unit tests.Question 2 · Easy · Playwright
In Playwright test scripts, what is the key difference between a BrowserContext and a Page?- A.A BrowserContext manages OS-level display settings, while a Page controls the network proxy.
- B.A BrowserContext is an isolated, incognito-like session with its own cookies and cache, which can host multiple Pages.
- C.A BrowserContext runs only in headless mode, whereas a Page runs only in headed mode.
- D.A BrowserContext represents a single browser tab, while a Page manages browser plugins and local storage.
Show answer
B. A BrowserContext is an isolated, incognito-like session with its own cookies and cache, which can host multiple Pages.
A BrowserContext provides complete isolation (cookies, local storage, cache) equivalent to a private incognito session without the overhead of launching an entirely new browser instance. A Page represents a single tab or window within that context.Question 3 · Moderate · Selectors
Which Playwright locator strategy is considered most resilient according to Playwright's testing guidelines?- A.
page.locator('button.btn-primary.submit-form') - B.
page.getByRole('button', { name: 'Submit' }) - C.page.locator(
xpath=//button[contains(@class, "submit")]) - D.page.locator(
#main-content > form > button:nth-child(3))
Show answer
B.
page.getByRole('button', { name: 'Submit' })Playwright recommends role-based locators because they mirror how users and assistive technologies perceive the page, making them resilient to CSS and DOM structure changes.- A.
Question 4 · Advanced · Assertions
What is the primary operational difference betweenexpect(locator).toBeVisible()andexpect(await locator.isVisible()).toBe(true)in Playwright Test?- A.expect(locator).toBeVisible() ignores CSS opacity, whereas isVisible() checks computed opacity.
- B.expect(locator).toBeVisible() only checks the viewport boundaries, whereas isVisible() checks DOM attachment.
- C.expect(locator).toBeVisible() cannot be used with custom timeout options, whereas isVisible() supports timeout overrides.
- D.expect(locator).toBeVisible() retries until timeout, whereas locator.isVisible() evaluates once immediately without retries.
Show answer
D. expect(locator).toBeVisible() retries until timeout, whereas locator.isVisible() evaluates once immediately without retries.
Web-first assertions like expect(locator).toBeVisible() poll and retry until the condition passes or the assertion timeout is reached. In contrast, await locator.isVisible() performs a single, instantaneous check with no retries, leading to race conditions.
How scoring and certificates work
- Each check has 15 multiple-choice questions with one correct answer, and one timer for the whole check. A question you leave unanswered scores nothing.
- Practice is free without an account and shows whether each answer is right as you go, with an explanation.
- The certified exam is scored when you submit. 60% passes, which is 9 of 15. Easy unlocks Moderate, and Moderate unlocks Advanced.
- Passing the exam while signed in earns a free certificate, valid for one year, with its own verification page. See a sample certificate.
Free tools for Test automation: Regex Tester, JSON Compare, HTTP Status Codes