Git Product home page Git Product logo

Comments (6)

rudovjan avatar rudovjan commented on June 11, 2024

This could be related to chrome driver version.

from selenium-cucumber-js.

rudovjan avatar rudovjan commented on June 11, 2024

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;
};

from selenium-cucumber-js.

john-doherty avatar john-doherty commented on June 11, 2024

Hi @rudovjan, please can you give the latest version a try?

from selenium-cucumber-js.

rudovjan avatar rudovjan commented on June 11, 2024

Hi @john-doherty , you mean latest version of your selenium-cucumber-js with using your default chrome? Or latest chromedriver?

from selenium-cucumber-js.

john-doherty avatar john-doherty commented on June 11, 2024

Yes, the latest version of selenium-cucumber-js

from selenium-cucumber-js.

itmayziii avatar itmayziii commented on June 11, 2024

@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.

from selenium-cucumber-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.