selenium-cucumber-js
selenium-cucumber-js copied to clipboard
Having two features fail to run
I have a two features and if i do run
node ./node_modules/selenium-cucumber-js/index.js
I get node_modules/selenium-cucumber-js/runtime/world.js:177 The previously configured ChromeDriver service is still running. You must shut it down before you may adjust its configuration.
Expected One test ends another start
This could be related to chrome driver version.
Solved with my own driver.. maybe it will help to someone .. not a selenium expert
'use strict';
/**
* Creates a Selenium WebDriver using Chrome as the browser
* @returns {ThenableWebDriver} selenium web driver
*/
let service;
module.exports = function() {
const webdriver = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const path = require('chromedriver').path;
if (service === undefined) {
service = new chrome.ServiceBuilder(path).build();
chrome.setDefaultService(service);
}
const driver = new webdriver.Builder()
.withCapabilities({
browserName: 'chrome',
javascriptEnabled: true,
path
})
.build();
return driver;
};
Hi @rudovjan, please can you give the latest version a try?
Hi @john-doherty , you mean latest version of your selenium-cucumber-js with using your default chrome? Or latest chromedriver?
Yes, the latest version of selenium-cucumber-js
@john-doherty
Just some information, I get the same error using the cucumber/cucumber-js library which I know this library uses. Anytime I have more than one scenario in a feature file.
@rudovjan Thanks for the fix.