CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Could not load helper Playwright from module './helper/Playwright'

Open skumar070 opened this issue 4 years ago • 0 comments

What are you trying to achieve?

Run just a test script using codeceptjs run command

What do you get instead?

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

RUN: [sudo] npm install -g playwright@^1 Error: Required modules are not installed.

RUN: [sudo] npm install -g playwright@^1 at createHelpers (Users\AppData\Roaming\npm\node_modules\codeceptjs\lib\container.js:177:17) at Function.create (Users\AppData\Roaming\npm\node_modules\codeceptjs\lib\container.js:43:25) at Codecept.init (Users\AppData\Roaming\npm\node_modules\codeceptjs\lib\codecept.js:56:15) at module.exports (Users\AppData\Roaming\npm\node_modules\codeceptjs\lib\command\run.js:24:14) at Command. (Users\AppData\Roaming\npm\node_modules\codeceptjs\bin\codecept.js:9:11) at Command.listener (Users\AppData\Roaming\npm\node_modules\codeceptjs\node_modules\commander\index.js:315:8) at Command.emit (events.js:315:20) at Command.parseArgs (Users\AppData\Roaming\npm\node_modules\codeceptjs\node_modules\commander\index.js:651:12) at Command.parse (Users\AppData\Roaming\npm\node_modules\codeceptjs\node_modules\commander\index.js:474:21) at Object. (Users\AppData\Roaming\npm\node_modules\codeceptjs\bin\codecept.js:202:9)

Details

  • CodeceptJS version: 3.0.7
  • NodeJS Version: 14.15.0
  • Operating System: Windows
  • Playwright: 1.17.1
  • Configuration file:
# paste config here
Playwright: {
      url: HOST_URL,
      show: false,
      restart: true,
      keepCookies: true,
      fullPageScreenshots: true,
      windowSize: "1500 x 800",
      "chromium": {
        "args": ["--no-sandbox"],
      },
      args: '--start-fullscreen',
      browser: 'chromium',
      waitForNavigation: "domcontentloaded",
    },

skumar070 avatar Dec 08 '21 07:12 skumar070