Playwright · Senior · Question 17 of 77

Why might page.route not catch some requests?

Show the answer

Correct answer: A service worker can handle them before the network

Explanation

Requests served by a service worker bypass page.route. Setting serviceWorkers: 'block' makes routing predictable.

Further reading

Problem with a question

Playwright · Senior · question 17

Test yourself

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

Take this quiz