This commit is contained in:
brow3c
2021-05-16 01:26:00 +09:00
parent 569fe8b312
commit 87a478fa7b

View File

@@ -41,9 +41,9 @@ class NavigateService {
return params.sessionId ? this._getDriverExists(params) : this._getNewDriver()
}
_getDriverExists(params) {
async _getDriverExists(params) {
return new WebDriver(new Session(params.sessionId, this.config.capabilities), new _http.Executor(Promise.resolve(this.config.hub)
.then(url => new _http.HttpClient(url, null, null)))).catch(err => logger.error(err, 'adsfsdfdsffdsdfdsfdsf'))
.then(url => new _http.HttpClient(url, null, null))))
}
_getNewDriver() {