0

I am able to launch the Chrome browser using Playwright-core and puppeteer-core, But Want to use codeceptjs with Playwright.

Can we user Playwright-core or puppeteer-core with CodeceptJS ?

1 Answers1

0

A solution has been given to installing puppeteer without downloading the chromium binaries in this issue post:

npm config set puppeteer_skip_chromium_download true
npm install puppeteer

The same kind of environment variable exists for playwright as described in their documentation:

PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm i -D playwright

After that you can install and configure CodeceptJS as usual:

npm install codeceptjs
npx codeceptjs init

Note that there is also an open issue in the CodeceptJS repository about supporting explicitely playwright-core package, so there is no official way of installing that package directly.

Roman Mkrtchian
  • 2,548
  • 1
  • 17
  • 24