Skip to content

Error: DispInvoke: execScript Exception occurred. #11

@SocolaDaiCa

Description

@SocolaDaiCa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions