Skip to content

WIP - utilities for supporting additional JSON protocol commands in WebDriver, for use with Protractor.

License

Notifications You must be signed in to change notification settings

rajarshi-singh/webdriver-js-extender

 
 

Repository files navigation

WebDriver JS Extender

This tools extends Selenium's javascript implementation of the WebDriver API to include additional commands (e.g. commands required for appium).

You can view the full list of commands in lib/index.ts.

Usage

If you are using a versoin of selenium-webdriver below 3.0.0-beta-1, you must use the patch() function before you create your webdriver instance:

require('webdriver-js-extender').patch(
    require('selenium-webdriver/lib/command'),
    require('selenium-webdriver/executors'),
    require('selenium-webdriver/http'));

Once you've patched selenium-webdriver (or if you're using version 3.x), all you need to do is run the extend function on your webdriver instance:

  var extendedWebdriver = require('webdriver-js-extender').extend(webdriver);

  extendedWebdriver.setNetworkConnection(5);

About

WIP - utilities for supporting additional JSON protocol commands in WebDriver, for use with Protractor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.4%
  • JavaScript 2.6%