I am new to testing e2e and using the protractor / jasmine structure. I know how to get an array of elements, as well as how to click on an anchor. But how could / even click on the list of anchors returned by the element selector / repeater?
I try in many ways, but as an example (the last one that was not removed by lol), this is what I got:
element.all(by.repeater('link in links')).then(function(links) {
links.forEach(function(link) {
link.click().then(function() {
console.log('callback for click ');
});
});
});
It seems that the first element and click, but come to the next iteration that it hangs (I can understand why, but I am struggling to figure out a way to solve the problem - is this some kind of promise and decisive factor that I need to take the bill?)
Return error
Failure: link to deprecated element: element not attached to page document
/ - googling ...
!