-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
My Code
const puppeteer = require('puppeteer-ie');
const screenshot = 'github2.png';
(async () => {
const browser = await puppeteer.launch({ headless: false })
const page = await browser.newPage()
var url;
url = 'https://google.com';
try {
await page.goto(url, {
timeout: 10000,
waitUntil: 'networkidle0',
});
console.log(`await page.goto('https://github.com/login')`);
await page.screenshot({ path: screenshot });
console.log(`await page.screenshot({ path: screenshot })`);
browser.close()
console.log('See screenshot: ' + screenshot)
} catch (e) {
console.log('xxx');
console.log(e);
}
})()error
λ node index.js
xxx
Error: DispInvoke: execScript Exception occurred.
at Dispatch.<anonymous> (<anonymous>)
at ExecutionContext.require (C:\Users\This PC\Desktop\pptr-ie\node_modules\puppeteer-ie\source\ExecutionContext.js:39:16)
at ExecutionContext.attach (C:\Users\This PC\Desktop\pptr-ie\node_modules\puppeteer-ie\source\ExecutionContext.js:58:20)
at Page.waitForNavigation (C:\Users\This PC\Desktop\pptr-ie\node_modules\puppeteer-ie\source\Page.js:64:29)
at async C:\Users\This PC\Desktop\pptr-ie\index.js:34:9 {
errno: -2147352567,
code: -2147352319,
description: 'Could not complete the operation due to error 80020101.'
}
Please help me
sohailafzal3
Metadata
Metadata
Assignees
Labels
No labels