Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Proposal: add seleniumServerStartTimeout in Local DriverProvider #3791

Merged
merged 1 commit into from
Dec 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ export interface Config {
*/
seleniumServerJar?: string;

/**
* The timeout milliseconds waiting for a local standalone Selenium Server to start.
*
* default: 30000ms
*/
seleniumServerStartTimeout?: number;

/**
* Can be an object which will be passed to the SeleniumServer class as args.
* See a full list of options at
Expand Down
2 changes: 1 addition & 1 deletion lib/driverProviders/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class Local extends DriverProvider {
this.server_ = new remote.SeleniumServer(this.config_.seleniumServerJar, serverConf);

// start local server, grab hosted address, and resolve promise
this.server_.start().then((url: string) => {
this.server_.start(this.config_.seleniumServerStartTimeout).then((url: string) => {
logger.info('Selenium standalone server started at ' + url);
this.server_.address().then((address: string) => {
this.config_.seleniumAddress = address;
Expand Down