()
| 45 | |
| 46 | @pytest.mark.asyncio |
| 47 | async def test_screenshot(): |
| 48 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 49 | url = "https://www.nbcnews.com/business" |
| 50 | result = await crawler.arun(url=url, screenshot=True, bypass_cache=True) |
| 51 | |
| 52 | assert result.success |
| 53 | assert result.screenshot |
| 54 | assert isinstance(result.screenshot, str) # Should be a base64 encoded string |
| 55 | |
| 56 | @pytest.mark.asyncio |
| 57 | async def test_custom_user_agent(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…