Skip to content

How to use with puppeteer-core instead of puppeteer #2076

@incoming-th

Description

@incoming-th

What are you trying to achieve?

I try to install CodeceptJS with puppeteer-core as I want to use it with Browserless, therefore no need to install the default Chromium browser bundled with puppeteer

What do you get instead?

When running the tests, the puppeteer libray is indeed not found:

Provide console output if related. Use --verbose mode for more details.

Could not load helper Puppeteer from module './helper/Puppeteer':
Required modules are not installed.

RUN: [sudo] npm install -g puppeteer@^1.6.0

Details

  • CodeceptJS version: ^2.3.6
  • NodeJS Version: 10.15.2
  • Operating System: Ubuntu 19.10
  • puppeteer(-core): ^1.20.0
  • Configuration file:
exports.config = {
  tests: './scripts/*_test.js',
  output: './logs',
  helpers: {
    Puppeteer: {
      url: 'http://localhost',
      show: false,
      restart: false,
      waitForNavigation: "networkidle0",
      chrome: {
        browserWSEndpoint: "wss://chrome.browserless.io/"
      },
    }
  },
  include: {
    I: './steps_file.js'
  },
  bootstrap: null,
  mocha: {},
  name: 'worker'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions