question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request example of element.all(by.repeater('xx in yy')).get(0)....

See original GitHub issue

This seems to work fine…

expect(element.all(by.repeater('article in pagedArticles')).count()).toEqual(25);

But what is the correct usage of…

element.all(by.repeater('article in pagedArticles')).get(0)....

I can’t seem to get a handle to the elements in each repeat.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
juliemrcommented, Nov 14, 2013

That’s because it’s a WebElement. You’ll need to use a method on it to get information out of it - like getText() or getAttribute()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protractor: by repeater element all returning size 0
repeater ("project in projectList.projects | filter:projectList.search | orderBy:'name'")).then(function(trElements) { console.log(trElements.
Read more >
repeater - Protractor - end-to-end testing for AngularJS
For 2 pets rows // resolves to an array of 2 elements. var rows = element.all(by.repeater('cat in pets')); // Returns a promise that...
Read more >
Untitled - Plunker
The * resulting error will have a namespaced error code of example.one. ... If a destination is provided, all of its elements (for...
Read more >
Handle WebElement using Protractor - table or ng-repeater
This video will explain how to handle angular tables or ng- repeater elements using protractor tool.and also know how to use the xpath...
Read more >
Repeater Analysis for Combining Information - JSTOR
For example, U.S. graduate schools usually receive both TOEFL ... ment errors has mean 0^, the Āf -dimensional vector with all elements 0....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found