diff --git a/index.js b/index.js index 204db8e..6e5429c 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,9 @@ const LocalWebDriverBase = function( log.debug('[http] ' + meth + ' ' + path + ' ' + (data || '')); }); - this.on('start', (url) => { + this.on('start', async (url) => { + await new Promise((resolve) => setTimeout(resolve, 2000)); + this.browser.init(this.spec, (error) => { if (error) { log.error(`Could not connect to ${this.browserName} WebDriver`);