Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: DispInvoke: execScript Exception occurred. #11

Open
SocolaDaiCa opened this issue Aug 18, 2020 · 1 comment
Open

Error: DispInvoke: execScript Exception occurred. #11

SocolaDaiCa opened this issue Aug 18, 2020 · 1 comment

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

@sohailafzal3
Copy link

getting same issue

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

No branches or pull requests

2 participants