Playwright · Junior · Question 12 of 75

What is the page argument in a Playwright test?

test("opens home", async ({ page }) => {
  await page.goto("/");
});
Show the answer

Correct answer: A fixture with a fresh page in an isolated context

Explanation

page is a built-in fixture. Each test gets a new browser context and page, so cookies and storage don't leak between tests.

Further reading

Problem with a question

Playwright · Junior · question 12

Test yourself

Take the Playwright · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz