I'm using protractor (jasmine, typescript) and need a help with this case:
I have a structure like this:
<div class="row">
<span class="name1">
name
</span>
<i class="close-icon1">
close
</i>
</div>
<div class="row">
<span class="name2">
name
</span>
<i class="close-icon2">
close
</i>
</div>
And I need a function like:
public clickRemove(itemName: string): void {
// some code
}
this code needs to search trough the 'rows', find the 'itemName' and click on its 'close'; Any ideas to as to how to solve this?