Playwright · Senior · Question 29 of 77

Why are browser contexts cheap compared with launching browsers?

Show the answer

Correct answer: A context is a new profile inside one running browser

Explanation

Launching a browser takes about a second; a context takes milliseconds. That's why Playwright can give each test a fresh context.

Further reading

Problem with a question

Playwright · Senior · question 29

Test yourself

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

Take this quiz