Protractor - count elements in repeater and print it

前端 未结 1 593
灰色年华
灰色年华 2021-01-03 22:54

I\'m trying to count the elements in repeater and to print it to console.

This is the markup:

相关标签:
1条回答
  • 2021-01-03 23:49

    If I understand your problem correctly, you actually want to print the count and not the entire content, right?

    element.all(by.repeater('app in userApps')).count().then(function(count) {
      console.log(count);
    });
    
    0 讨论(0)
提交回复
热议问题