We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4eee4 commit 45796c8Copy full SHA for 45796c8
javascript/webdriver/builder.js
@@ -201,8 +201,7 @@ webdriver.Builder.prototype.build = function() {
201
if (this.sessionId_) {
202
return webdriver.WebDriver.attachToSession(executor, this.sessionId_);
203
} else {
204
- throw new Error('Unable to create a new client for this browser. The ' +
205
- 'WebDriver session ID has not been defined.');
+ return webdriver.WebDriver.createSession(executor, this.capabilities_);
206
}
207
208
};
0 commit comments