| 245 | |
| 246 | # Create dummy classes to simulate failure in page.goto |
| 247 | class DummyPage: |
| 248 | async def goto(self, url, wait_until): |
| 249 | raise asyncio.TimeoutError("Forced timeout") |
| 250 | |
| 251 | async def wait_for_load_state(self, state): |
| 252 | return |
| 253 | |
| 254 | async def content(self): |
| 255 | return "<html>Dummy</html>" |
| 256 | |
| 257 | class DummyContext: |
| 258 | async def new_page(self): |