I am trying to run my Protractor test from command line using package.json.
My package.json looks like below -
{
"name": "ProtractorFramework",
"dependencies": {
"protractor": "^5.4.1"
},
"scripts": {
"webdriver-manager-update":"./node_modules/.bin/webdriver-manager update",
"webdriver-manager-start":"./node_modules/.bin/webdriver-manager start",
"protractor":"./node_modules/.bin/protractor configuration.js",
"start":"npm run webdriver-manager-update && npm run webdriver-manager-start && npm run protractor"
}
}
When I execute the below command -
npm run start
from Project directory, the Selenium Standalone server is up, but the last command is not getting executed. It means, the browser is not opening.
To execute the test/open the browser, I am forced to execute npm run protractor
separately in another command window.
Is there any mistake in my package.json that I am unable to execute all three commands together?
Please help.