Skip to content

selenium-webdriver/remote: SeleniumServer.start does not resolve #1215

@hankduan

Description

@hankduan

SeleniumServer.start returns a promise that does not resolve if no option is provided to the start function. See below:

var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
var pathToSeleniumJar = '/workspace/protractor/selenium/selenium-server-standalone-2.48.2.jar';

var options = undefined;
// Uncomment the following and the test will work fine. 
// var options = {
//   port: 4444
// }
var server = new SeleniumServer(pathToSeleniumJar, options);

server.start().then(function(url) {
  console.log('Never reached');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions