I'm struggling to access the child element of an ng-repeat element.
After searching for solutions, I came across suggestions that didn't work for me. One tip was to try something like this:
var parent = element(by.repeater(''));
var child = parent.element(by.....);
However, when I attempt to use the child
line, I can't seem to find the element function on the parent element.
If you look at the provided screenshot, you'll see the structure of the page code I'm trying to test.
My goal is to retrieve the alt attribute of the avatar image and extract its value (which is the Username of the User).
One possible solution I thought of is using .getInnerHTML()
on the ng-repeat row to get a string containing all the code. From there, I could locate the alt
attribute and its value through string manipulation, but this approach seems too brute-force, and I believe there must be a better method.
In simple terms, what I aim to do is to fetch row 4 from the repeater and obtain the Username of the user in row 4. That's essentially my objective here.