protractor-expected-conditions-for-all-elements

protractor expected conditions for all elements

Usage no npm install needed!

<script type="module">
  import protractorExpectedConditionsForAllElements from 'https://cdn.skypack.dev/protractor-expected-conditions-for-all-elements';
</script>

README

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);
    });
});