zoonru / puphpeteer

A Puppeteer bridge for PHP, supporting the entire API.
MIT License
139 stars 42 forks source link

Call to a member function newPage() on null #7

Closed petschephp closed 3 months ago

petschephp commented 1 year ago

Describe the bug When I try to run the newPage() method, I receive an error

Call to a member function newPage() on null

Reproducible example

        $puppeteer = new Puppeteer;
        $browser = $puppeteer->launch();
        $page = $browser->newPage();
        $page->goto('https://example.com', ['waitUntil' => 'domcontentloaded']);
xtrime-ru commented 3 months ago

Hi! I suggest to check logs for additional errors. Probably there are issues with installation of puppeteer, or npm packages.