I am trying to wait for multiple elements on the page, I don't know how many there could be but there will be at least one. I understand waiting for a single element using the following, which works fine.
var EC = protractor.ExpectedConditions;
browser.wait(EC.presenceOf(element(by.css("h3[title='Test Form']"))), 10000);
expect(element(by.css("h3[title='Test Form']")).isPresent()).toBeTruthy();
I wanted to change this slightly to wait for multiple elements and so tried the below (adding .all to element).
var EC = protractor.ExpectedConditions;
browser.wait(EC.presenceOf(element.all(by.css("h3[title='Test Form']"))), 10000);
expect(element.all(by.css("h3[title='Test Form']")).isPresent()).toBeTruthy();
Unfortunately when I try this I get
Cannot read property 'bind' of undefined
Any help on this would be very much appreciated.
p.s. Newbie to Protracor and its quirks.