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

Commit

Permalink
feat(config): add seleniumServerStartTimeout (#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirakoyasu authored and sjelin committed Dec 13, 2016
1 parent 288dfeb commit b337a8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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 @@ -104,7 +104,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

0 comments on commit b337a8e

Please sign in to comment.