Skip to content

Commit a27e97c

Browse files
committed
[javascript] SM supports all browsers in Selenium since a while ago
1 parent 490de08 commit a27e97c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

javascript/node/selenium-webdriver/common/seleniumManager.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ const path = require('path')
2626
const fs = require('fs')
2727
const spawnSync = require('child_process').spawnSync
2828

29-
/**
30-
* currently supported browsers for selenium-manager
31-
* @type {string[]}
32-
*/
33-
const Browser = ['chrome', 'firefox', 'edge', 'MicrosoftEdge', 'iexplorer']
34-
3529
let debugMessagePrinted = {};
3630

3731
/**
@@ -67,12 +61,6 @@ function getBinary() {
6761
*/
6862

6963
function driverLocation(options) {
70-
if (!Browser.includes(options.getBrowserName().toLocaleString())) {
71-
throw new Error(
72-
`Unable to locate driver associated with browser name: ${options.getBrowserName()}`
73-
)
74-
}
75-
7664
const browserName = options.getBrowserName().toLocaleLowerCase();
7765

7866
if (!debugMessagePrinted[browserName]) {

0 commit comments

Comments
 (0)