Skip to content

Commit 1995f30

Browse files
committed
[JS] Update testing/index.js code snippet to fix function call
1 parent 2ee529e commit 1995f30

File tree

1 file changed

+5
-5
lines changed
  • javascript/node/selenium-webdriver/testing

1 file changed

+5
-5
lines changed

javascript/node/selenium-webdriver/testing/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ function getAvailableBrowsers() {
118118
info(`Searching for WebDriver executables installed on the current system...`)
119119

120120
let targets = [
121-
[getPath(chrome.Options).driverPath, Browser.CHROME],
122-
[getPath(edge.Options).driverPath, Browser.EDGE],
123-
[getPath(firefox.Options).driverPath, Browser.FIREFOX],
124-
[getPath(ie.Options).driverPath, Browser.INTERNET_EXPLORER],
125-
[getPath(safari.Options).driverPath, Browser.SAFARI],
121+
[getPath(new chrome.Options()).driverPath, Browser.CHROME],
122+
[getPath(new edge.Options()).driverPath, Browser.EDGE],
123+
[getPath(new firefox.Options()).driverPath, Browser.FIREFOX],
124+
[getPath(new ie.Options()).driverPath, Browser.INTERNET_EXPLORER],
125+
[getPath(new safari.Options()).driverPath, Browser.SAFARI],
126126
]
127127

128128
let availableBrowsers = []

0 commit comments

Comments
 (0)