Skip to content
Advertisement

Tag: cucumberjs

Failed launching test session: Error: Couldn’t initialise “@wdio/cucumber-framework”

I am setting up the wdio using command “npm init wdio” and try to run the test files. it is giving below error Failed launching test session: Error: Couldn’t initialise “@wdio/cucumber-framework”. [0-0] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./lib/formatter/helpers/event_data_collector’ is not defined by Below is my package.json file } Answer I managed to fix this issue by reinstalling node and checking the

How to use Puppeteer and Headless Chrome with Cucumber-js

I am trying to do BDD with cucumber-js and drive the browser testing with Headless Chrome and puppeteer. Using the documentation from cucumber node example and headless chrome, I get the following errors, the entire code base is avaliable here: github repo. Errors: TypeError: this.browser.newPage is not a function TypeError: this.browser.close is not a function // features/support/world.js // features/step_definitions/hooks.js //

Advertisement