WebdriverIO Protocol Helper
This package stores the definition for various automation protocols such as WebDriver or vendor specific protocol extensions like for SauceLabs. Unless you are interested in generating a WebDriver client there should be no reason why you should need this package. This package holds the definition of the following protocols:
- WebDriver
- JSON Wire Protocol
- Appium
- Mobile JSON Wire Protocol
- Sauce Labs
- Chrome (WebDriver extension when running Chromedriver)
- Selenium (when running Selenium Standalone Server)
Install
To install the package, run:
$ npm install @wdio/protocols
Usage
You can get data by importing the package as follows:
import { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol } from '@wdio/protocols'
/**
* get description of session command
*/
console.log(WebDriverProtocol['/session'].POST.description)
For more information on WebdriverIO see the homepage.