1 | WebDriver JS Extender
|
2 | =====================
|
3 |
|
4 | This tools extends [Selenium's javascript implementation](
|
5 | https://www.npmjs.com/package/selenium-webdriver) of the WebDriver API
|
6 | to include additional commands (e.g. commands required for [appium](
|
7 | https://github.com/appium/appium)).
|
8 |
|
9 | You can view the full list of commands in [`lib/index.ts`](lib/index.ts#L8).
|
10 |
|
11 | Usage
|
12 | -----
|
13 |
|
14 | Use WebDriver JS Extender's `extend` function on your webdriver instance:
|
15 |
|
16 |
|
17 | ```js
|
18 | var extendedWebdriver = require('webdriver-js-extender').extend(webdriver);
|
19 |
|
20 | extendedWebdriver.setNetworkConnection(5);
|
21 | ```
|