Skip to content

Commit

Permalink
[nodejs] Initializing edge service with default settings if there is …
Browse files Browse the repository at this point in the history
…no one passed explicitly. Fixes #6539
  • Loading branch information
barancev committed Apr 14, 2019
1 parent c95af52 commit 7813079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/node/selenium-webdriver/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ class Driver extends webdriver.WebDriver {
* the {@linkplain #getDefaultService default service} by default.
* @return {!Driver} A new driver instance.
*/
static createSession(options, service = getDefaultService()) {
static createSession(options, opt_service) {
let service = opt_service || getDefaultService();
let client = service.start().then(url => new http.HttpClient(url));
let executor = new http.Executor(client);

Expand Down

0 comments on commit 7813079

Please sign in to comment.