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

Commit b337a8e

Browse files
akirakoyasusjelin
authored andcommitted
feat(config): add seleniumServerStartTimeout (#3791)
1 parent 288dfeb commit b337a8e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ export interface Config {
2828
*/
2929
seleniumServerJar?: string;
3030

31+
/**
32+
* The timeout milliseconds waiting for a local standalone Selenium Server to start.
33+
*
34+
* default: 30000ms
35+
*/
36+
seleniumServerStartTimeout?: number;
37+
3138
/**
3239
* Can be an object which will be passed to the SeleniumServer class as args.
3340
* See a full list of options at

lib/driverProviders/local.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class Local extends DriverProvider {
104104
this.server_ = new remote.SeleniumServer(this.config_.seleniumServerJar, serverConf);
105105

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

0 commit comments

Comments
 (0)