1.0.0 • Published 8 years ago

nemo-drivex v1.0.0

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

nemo-drivex

Selenium webdriver extensions for Nemo automation framework. Adapts JSON-formatted locator objects to common selenium-webdriver operations.

Unless you plan to get your hands dirty and author your own 'view' plugin (see nemo-view), you probably won't be interacting with nemo-drivex directly, besides adding it as a dependency and adding it to your nemo-plugins.json config. If you are planning to use nemo-view, just start with the docs there.

Register as "drivex" (see below)

Build Status

Installation

  1. Please install nemo to your project as described here: https://github.com/paypal/nemo/blob/master/README.md
  2. Add this plugin to your package.json dev dependencies ("nemo-drivex": "^0.3.0")
  3. npm install
  4. add nemo-drivex to your config/nemo-plugins.json file
{
	"plugins": {
		"drivex": {
			"module": "nemo-drivex",
			"register": true
		}
	}
}

Locator explanation

The JSON locators expected by nemo-drivex would look like this:

{
  "locator": "#result .result",
  "type": "id"
}

type would be any of the accepted locator strategies of the current version of selenium-webdriver: e.g. id, name, css, className, linkText, partialLinkText

locator would be the string which would locate the element(s) via the selected strategy

##Example usage

var resultEl = nemo.drivex.find({'locator': '#result .result', 'type': 'css'});

//resultEl will be a selenium-webdriver promise, which will resolve to a found element or null

Debugging

nemo-drivex uses the debug module. For detailed debug messages, set DEBUG=nemo-drivex to the running process.

API

Array

Promise

Array

Promise

Array

Promise

Array

Promise

LocatorJSON

WebElement

Promise

LocatorJSON

WebElement

Promise

Array

Promise

LocatorJSON

WebElement

Promise

LocatorJSON

Number

Promise

LocatorJSON

Number

Promise

object

string

string

1.0.0

8 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago