(route: Route)
| 296 | page = context.new_page() |
| 297 | |
| 298 | def handler(route: Route) -> None: |
| 299 | assert route.request.url == "http://no.playwright/" |
| 300 | route.fulfill( |
| 301 | status=200, |
| 302 | content_type="text/html", |
| 303 | body='<script src="./script.js"></script><div>hello</div>', |
| 304 | ) |
| 305 | |
| 306 | context.route("http://no.playwright/", handler) |
| 307 | page.goto("http://no.playwright/") |
no test coverage detected