Search code examples
javascriptprotractorangularjs-e2e

Protractor Repeater Inside Element


I want to access a repeater within another element:

enter image description here

If I have the following:

var dates = $('#provider_details_view').element.all(by.repeater('repeater name'); 

it doesn't work and says $(...).element.all is not a function


Solution

  • Do the chaining correctly, call .all() directly instead of .element.all():

    var dates = $('#provider_details_view').all(by.repeater('repeater name');