Skip to content

Commit db9a71a

Browse files
committed
[js] Remove support for the legacy SafariDriver. Safari 10 or bust.
Users can still use the standalone server for Safari 9. #2725
1 parent 3d95873 commit db9a71a

File tree

9 files changed

+80
-495
lines changed

9 files changed

+80
-495
lines changed

javascript/node/selenium-webdriver/CHANGES.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## v.next
2+
3+
* Removed native support for Safari 9 and older. Apple's safaridriver
4+
is now used for Safari 10 (available on El Capitan and macOS Sierra).
5+
6+
To use Safari 9, the builder should be configured to use an instance of the
7+
Selenium standalone server and `safari.Options` should be configured to
8+
enable the legacy driver. For instance:
9+
10+
```
11+
const webdriver = require('selenium-webdriver');
12+
const safari = require('selenium-webdriver/safari');
13+
14+
let driver = new webdriver.Builder()
15+
.forBrowser('safari')
16+
.usingServer('http://localhost:4444/wd/hub')
17+
.setSafariOptions(new safari.Options().useLegacyDriver(true))
18+
.build();
19+
```
20+
21+
122
## v3.0.0-beta-3
223

324
* Fixed a bug where the promise manager would silently drop callbacks after

javascript/node/selenium-webdriver/README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,15 @@ Selenium may be installed via npm with
1111
npm install selenium-webdriver
1212

1313
You will need to download additional components to work with each of the major
14-
browsers. The drivers for Chrome, Firefox, Safari, PhantomJS, Opera, and
14+
browsers. The drivers for Chrome, Firefox, PhantomJS, Opera, and
1515
Microsoft's IE and Edge web browsers are all standalone executables that should
1616
be placed on your system [PATH]. Apple's safaridriver is shipped with
17-
Safari 10 in macOS Sierra. You will need to enable Remote Automation in
18-
the Develop menu of Safari 10 before testing.
17+
Safari 10 for OS X El Capitan and macOS Sierra. You will need to enable Remote
18+
Automation in the Develop menu of Safari 10 before testing.
1919

2020
> **NOTE:** Mozilla's [geckodriver] is only required for Firefox 47+.
2121
> Everything you need for Firefox 38-46 is included with this package.
2222
23-
> **NOTE:** Apple's [safaridriver] is preferred for testing Safari 10+.
24-
> To test versions of Safari prior to Safari 10, The
25-
> [SafariDriver.safariextz][release] browser extension should be
26-
> installed in your browser before using Selenium. We recommend
27-
> disabling the extension when using the browser without Selenium
28-
> or installing the extension in a profile only used for testing.
29-
3023

3124
| Browser | Component |
3225
| ----------------- | ---------------------------------- |

javascript/node/selenium-webdriver/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"adm-zip": "0.4.4",
2727
"rimraf": "^2.2.8",
2828
"tmp": "0.0.24",
29-
"ws": "^1.0.1",
3029
"xml2js": "0.4.4"
3130
},
3231
"devDependencies": {

0 commit comments

Comments
 (0)