mucsi96 / nightwatch-api

[DEPRECATED] Cross-runner API for Nightwatch.js
https://nightwatch-api.netlify.com/
MIT License
84 stars 64 forks source link

Unable to run multibrowser in parallel as each time same browser gets opened #828

Closed paraspandiyar closed 3 years ago

paraspandiyar commented 4 years ago

package .json command

"scripts": { "e2e-test":mkdirp report && cucumber-js --tags @${TAG=automationInProgress} --parallel 2 --require-module @babel/register --require ./cucumber.conf.js --require ./tests/system/step-definitions --format ./node_modules/cucumber-pretty --format json:report/cucumber_report.json

cucumber.conf.js I was trying to specify both browsers in env of startwebsdriver method as global hooks

Also tried specifying -e or env in package .json script command but each time it says an (This used to work fine in nightwatch <1 )

error: unknown option '-e'

Before(async () => { await startWebDriver({env: chrome},{env: firefox}) await createSession() })

When i try to run the script it launches two same browsers either chrome or firefox depending upon the sequence it is mentioned . I am trying to launch one browser of chrome and one of firefox with same command

spnraju commented 3 years ago

Yes. This is a limitation on the core nightwatch package. We will check if this is changed in core package.