3.0.0 • Published 7 years ago

protractor-custom-locators v3.0.0

Weekly downloads
289
License
MIT
Repository
github
Last release
7 years ago

protractor-custom-locators

This module adds a custom locators to a protractor instance that finds elements by their attribute using 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)).

3.0.0

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.0.22

7 years ago

2.0.21

7 years ago

2.0.20

7 years ago

2.0.19

7 years ago

2.0.18

7 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago