-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Context:
- Playwright Version: 1.1.1
- Operating System: Linux (Ubuntu 16.04.6 LTS)
- Node version: 12.15.1
- Browser: Firefox
- Extra: -
Code Snippet
const { firefox } = require('playwright');
// ...
const browser = await firefox.launchPersistentContext(`./.data/${clientName}/`, _.merge(this.config, configurations));
const page = await browser.newPage({
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
});
page.setDefaultTimeout(timeout);
await page.route('**/*', route => {
if(route.request().resourceType() == 'stylesheet' || route.request().resourceType() == 'font' || route.request().resourceType() == 'image') {
route.abort();
}
else {
route.continue();
}
});
// ...Describe the bug
Here's the error I got:
5|bri | TypeError: Cannot read property 'message' of undefined
5|bri | at ProgressController.run (/mime/workspace/project/node_modules/playwright/lib/progress.js:85:51)
5|bri | at processTicksAndRejections (internal/process/task_queues.js:94:5)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels