Playwright · Senior · Question 33 of 77
What does box: true on a test.step do?
- 1Draws a box around the element in screenshots
- 2Runs the step in a separate browser context
- 3Errors point to the step call, not code inside it
Show the answer
Correct answer: Errors point to the step call, not code inside it
Explanation
In page object methods, boxing hides internal lines, so the report points to the line in the test that called the method.