# protractor-custom-locators

> Collection of additional protractor locators

Latest version **3.0.0** (published 2017-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install protractor-custom-locators
pnpm add protractor-custom-locators
yarn add protractor-custom-locators
bun add protractor-custom-locators
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-07-06 |
| First published | 2017-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Oleksii Ihnatiuk |
| Maintainers | crispusdh |
| Keywords | protractor, locators, typescript |

## Links

- npm: https://www.npmjs.com/package/protractor-custom-locators
- Repository: https://github.com/CrispusDH/protractor-custom-locators
- Homepage: https://github.com/CrispusDH/protractor-custom-locators#readme
- Issues: https://github.com/CrispusDH/protractor-custom-locators/issues
- npm.io page: https://npm.io/package/protractor-custom-locators

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2017-07-06
- 2.1.5 — 2017-07-06
- 2.1.4 — 2017-07-06
- 2.1.3 — 2017-07-06
- 2.1.2 — 2017-07-06
- 2.1.1 — 2017-07-06
- 2.0.22 — 2017-07-06
- 2.0.21 — 2017-07-06
- 2.0.20 — 2017-07-06
- 2.0.19 — 2017-07-06
- 2.0.18 — 2017-07-06
- 2.0.17 — 2017-07-06
- 2.0.16 — 2017-07-06
- 2.0.15 — 2017-07-06
- 2.0.14 — 2017-07-06
- … 24 more at https://npm.io/package/protractor-custom-locators/versions

## README

## protractor-custom-locators
This module adds a custom locators to a protractor instance that finds elements by their attribute using [addLocator](http://www.protractortest.org/#/api?view=ProtractorBy.prototype.addLocator) method.
### list of currently available locators:
* locator that finds element by `data-test-id` attribute
  * locator name - `dataTestId`
* locator that finds element by `data-reactid` attribute
  * locator name - `dataReactId`
## Installation
`$ npm install protractor-custom-locators`
## Usage
that you should put in your protractor.config.js:
```
import AddCustomLocators from "protractor-custom-locators/index";

onPrepare() {
   AddCustomLocators.addDataTestId(protractor);
   AddCustomLocators.addDataReactId(protractor);
}
```
The locator can then be used with `element(by.locatorName(args))`.

---
_Source: https://npm.io/package/protractor-custom-locators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
