Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Error: DispInvoke: execScript Exception occurred. #50

Closed
SocolaDaiCa opened this issue Aug 18, 2020 · 0 comments
Closed

Error: DispInvoke: execScript Exception occurred. #50

SocolaDaiCa opened this issue Aug 18, 2020 · 0 comments

Comments

@SocolaDaiCa
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant