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
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...
Was this page helpful?