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

Commit

Permalink
feat add seleniumServerStartTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
akirakoyasu committed Dec 4, 2016
1 parent 7d481d6 commit fc0f8e8
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 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

0 comments on commit fc0f8e8

Please sign in to comment.