foreign-sapphire•2y ago
How to use InjectFile func of PlaywrightUtils?
I want to inject js file into chrome and use it to crawl the function in js file.
Can you tell me the some Example to use InjectFile func?
https://crawlee.dev/api/playwright-crawler/namespace/playwrightUtils#injectFile
https://crawlee.dev/api/playwright-crawler/namespace/playwrightUtils#injectFile
playwrightUtils | API | Crawlee
A namespace that contains various utilities for
Playwright - the headless Chrome Node API.
Example usage:
```javascript
import { launchPlaywright, playwrightUtils } from 'crawlee';
// Navigate to https://www.example.com in Playwright with a POST request
const browser = await launchPlaywright();
c...
2 Replies
Hello @CherryPapa, someone from the team will reply soon. 😄
hey, here's a very simple example: