Playwright · Junior · Question 5 of 75
How do you run Playwright tests with a visible browser window?
- 1Set
headless: 'off'in each test - 2Add the
--visibleflag - 3Add the
--headedflag
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.