One right answer, against the clock in your head.
Short questions with one right answer: selectors, SQL, HTTP, shell. Results are kept only when you are signed in.
Today's drillXPath
Write an XPath for a button with the exact text "Submit".
XPath
Write an XPath for any div whose id starts with "panel-".
XPath
Write an XPath for the second li inside a ul with class "menu".
XPath
Write an XPath for an input whose placeholder attribute contains "search".
XPath
Write an XPath for an anchor (a) tag that is a direct child of a nav element.
XPath
Write an XPath selecting the parent of any element with class "error".
XPath
Write an XPath for a span whose text contains "Total:" anywhere in the page.
CSS Selectors
Write a CSS selector for a p element immediately after an h2.
CSS Selectors
Write a CSS selector for an input with placeholder="Enter email".
CSS Selectors
Write a CSS selector for an anchor whose href starts with "https".
CSS Selectors
Write a CSS selector for a div with class "modal" that is a direct child of #app.
CSS Selectors
Write a CSS selector for any input inside a form with class "login".
CSS Selectors
Write a CSS selector for the last li in a list.
CSS Selectors
Write a CSS selector for a button that is disabled.
CSS Selectors
Write a CSS selector for an element with both class "btn" and "primary".
Playwright Locators
Write a Playwright locator for a button with the accessible name "Save".
Playwright Locators
Write a Playwright locator for an input with placeholder "Email".
Playwright Locators
Write a Playwright locator for text matching exactly "Welcome back".
Playwright Locators
Write a Playwright locator for an element with data-testid="submit-btn".
Playwright Locators
Write a Playwright locator for the first element among all ".item" elements.
Playwright Locators
Write a Playwright locator for the input associated with a label "Username".
Cypress Commands
Write a Cypress command to select an element with data-testid="submit-btn" and click it.
Cypress Commands
Write a Cypress command to select an element by exact visible text "Continue".
Cypress Commands
Write a Cypress command to type "admin" into an input with id "username".
Cypress Commands
Write a Cypress command to intercept a GET request to "/api/users" and alias it as "getUsers".
Cypress Commands
Write a Cypress assertion that a button with id "save" is disabled.
Cypress Commands
Write a Cypress command to load fixture data from "user.json".
Cypress Commands
Write a Cypress command to check a checkbox with id "terms".
Unix Commands
Show the last 20 lines of a file called app.log.
Unix Commands
Find all files named "*.test.js" under the current directory.
Unix Commands
Count the number of lines in a file called data.csv.
Unix Commands
Recursively search for the string "ERROR" in all files under the current directory.
Unix Commands
Show which process is listening on port 8080.
Unix Commands
Make script.sh executable for its owner.
SQL
Select all columns from a users table where email is 'a@b.com'.
SQL
Count the number of rows in an orders table.
SQL
Get the 5 highest-paid rows from an employees table (salary column).
SQL
Find duplicate emails in a users table.
SQL
Join orders to customers on customer_id, selecting customer name and order total.
HTTP Status Codes
What status code means "Created", typically after a successful POST?
HTTP Status Codes
What status code means the client sent a request the server can't parse?
HTTP Status Codes
What status code means the resource has moved permanently?
HTTP Status Codes
What status code means the client is sending too many requests (rate limited)?
HTTP Status Codes
What status code means the server understood the request but refuses to authorize it?
HTTP Status Codes
What status code means the requested resource doesn't exist?
HTTP Status Codes
What status code means the server hit an unexpected error?
HTTP Status Codes
What status code means the request succeeded but there's no content to send back?