Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

docs(locators.js): Example - how do I get the image url? #1000

@petermajor

Description

@petermajor

The documentation example for "by.repeater" show the following html:

<div class="book-img" ng-repeat-start="book in library">
  <img ng-src="{{book.imgUrl}}"></img>
</div>
<div class="book-info" ng-repeat-end>
  <h4>{{book.name}}</h4>
  <p>{{book.blurb}}</p>
</div>

However, it doesn't show how I can get the value for "book.imgUrl".

I've tried:
element.all(by.repeater('book in library').column('imgUrl'));

But I get the error message:
Error: No element found using locator: by.repeater("book in library").column("imgUrl")

Could we have some extra description in the docs on how to check this particular property please?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions