nemo-wd-bridge

0.0.3 • Public • Published

nemo-wd-bridge

Nemo plugin to add wd driver capability to nemo

Installation

$ npm install --save nemo-wd-bridge

Registration

In config.json or inline config object:

"plugins": {
  "wdb": {
    "module": "nemo-wd-bridge"
  }
},

Results in a wdb namespace on the nemo object

Driver Configuration

Because wd requires a webdriver server URL to function, you will need to use one.

Furthermore, you will need to configure the "driver" via the "builders" property as described here: https://github.com/paypal/nemo/blob/master/README.md#builders-optional

A couple examples of driver configurations follow:

externally started standalone

{
  "driver": {
    "builders": {
      "withCapabilities": [{
        "browserName": "firefox"
      }],
      "usingServer": ["http://localhost:4444/wd/hub"]
    }
  },
  "plugins": {
    "wdb": {
      "module": "nemo-wd-bridge"
    }
  }
}

Nemo-managed standalone

{
  "driver": {
    "jar": "/Users/medelman/bin/selenium-server-standalone-2.47.1.jar",
    "browser": "firefox",
    "server": "localhost",
    "local": true
  },
  "plugins": {
    "wdb": {
      "module": "nemo-wd-bridge"
    }
  }
}

API

nemo.wdb

The wd driver object. Will have all methods documented here: https://github.com/admc/wd/blob/master/doc/api.md

nemo.wdb.swEl

Convert a wd Element to Selenium WebElement

nemo.wdb.wdEl

Convert a Selenium WebElement to wd Element

  • @argument el {selenium WebElement}
  • @returns Promise resolves to wd Element

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i nemo-wd-bridge

Weekly Downloads

1

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • grawk