protractor-expected-conditions-for-all-elements

1.0.0 • Public • Published

protractor expected conditions for all elements

##Usage The protractor-expected-conditions-for-all-elements is available via npm:

$ npm install protractor-expected-conditions-for-all-elements

In your Protractor spec file, register protractor-expected-conditions-for-all-elements and use if need expects presence of all elements in DOM:

presenceOfAll

// spec.js
var ECAll = require('protractor-expected-conditions-for-all-elements')

describe('Protractor Demo', function() {
    var history = element.all(by.repeater('result in memory'));

    it('should have a history', function() {
        //expected presence of elements
        browser.wait(ECAll.presenceOfAll(history), 30000);
        expect(history.count()).toEqual(5);
    });
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i protractor-expected-conditions-for-all-elements

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • molot1989