From 4b18ff48e3c95cf50371c6dad7ffde990901c514 Mon Sep 17 00:00:00 2001 From: Tomer Date: Thu, 5 Mar 2020 13:00:29 +0200 Subject: [PATCH] return node 10 support --- javascript/node/selenium-webdriver/chrome.js | 3 +-- javascript/node/selenium-webdriver/edge.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/javascript/node/selenium-webdriver/chrome.js b/javascript/node/selenium-webdriver/chrome.js index 0d1eadb696c5d..f952b8ba03f68 100644 --- a/javascript/node/selenium-webdriver/chrome.js +++ b/javascript/node/selenium-webdriver/chrome.js @@ -288,10 +288,9 @@ class Driver extends chromium.Driver { let caps = opt_config || new Options(); return /** @type {!Driver} */(super.createSession(caps, opt_serviceExecutor)); } - - static getDefaultService = getDefaultService; } +Driver.getDefaultService = getDefaultService; Driver.prototype.VENDOR_COMMAND_PREFIX = "goog"; diff --git a/javascript/node/selenium-webdriver/edge.js b/javascript/node/selenium-webdriver/edge.js index 9ee60036bd673..599130aa4d067 100644 --- a/javascript/node/selenium-webdriver/edge.js +++ b/javascript/node/selenium-webdriver/edge.js @@ -119,7 +119,6 @@ function locateSynchronously(browserName) { * Class for managing Edge specific options. */ class Options extends chromium.Options { - static USE_EDGE_CHROMIUM = 'ms:edgeChromium'; /** * Instruct the EdgeDriver to use Edge Chromium if true. * Otherwise, use Edge Legacy (EdgeHTML). Defaults to using Edge Legacy. @@ -133,6 +132,7 @@ class Options extends chromium.Options { } } +Options.USE_EDGE_CHROMIUM = 'ms:edgeChromium'; Options.prototype.BROWSER_NAME_VALUE = Browser.EDGE; Options.prototype.CAPABILITY_KEY = 'ms:edgeOptions'; Options.prototype.VENDOR_CAPABILITY_PREFIX = 'ms';