Playwright · Middle · Question 19 of 75
What does route.abort() do?
- 1Stops the test as soon as the request is sent
- 2Makes the request fail, like a network error
- 3Waits for the request and then cancels the test
Show the answer
Correct answer: Makes the request fail, like a network error
Explanation
Aborting requests can block images or analytics to speed up tests, or simulate a failed network call.