All questions
Intermediate · JavaScript · Assertions
Playwright: read the error message
Commonly asked: QA automation / SDET interview rounds · ~8 min
Write loginError(page, user, pass): log in like before, then return the text of the **alert** that appears, or null if login succeeded (the URL becomes /dashboard).
Checking your membership…
More JavaScript coding questions
- Playwright: extract data from a tableIntermediate · Tables
- Playwright: click a button inside the right rowIntermediate · Locators
- Playwright: catch a toast without sleepingIntermediate · Waits
- Playwright: verify the cart totalIntermediate · Assertions
