Playwright · Junior · Question 5 of 75

How do you run Playwright tests with a visible browser window?

Show the answer

Correct answer: Add the --headed flag

Explanation

Tests run headless by default. --headed opens real browser windows, which helps when watching what a test does. --debug and UI Mode give even more control.

Further reading

Problem with a question

Playwright · Junior · question 5

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