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
Tag: cucumberjs
Invoke cucumber cli programatically through index.js of node
I have been given an automation framework in CucumberJS and node with selenium. But it has an older version of cucumber which relies on promises. In an attempt to avail latest synchronous step feature, I decided to upgrade the cucumberJS version (1.3.3 to 4.2.1) Now the problem is the code that was used to invoke cucumber cli programmatically in index.js
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 //