Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    nemo-wd-bridgepublic

    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

    install

    npm i nemo-wd-bridge

    Downloadsweekly downloads

    4

    version

    0.0.3

    license

    Apache-2.0

    repository

    githubgithub

    last publish

    collaborators

    • avatar