Playwright · Middle · Question 19 of 75

What does route.abort() do?

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.

Further reading

Problem with a question

Playwright · Middle · question 19

Test yourself

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

Take this quiz