I\'ve got a div in an HTML Page of which the name is always known and inside this div there is an href, the details of which are not known. It could be the direct child of the
figured out a solution:
ptor.findElement(protractor.By.className('clsName'))
.findElements(protractor.By.tagName('a'))
.then(function(links){
links[0].click();
//place expects here, otherwise it will run async and your expects will be hit
//before the lookup
});
This seems to work pretty well for my purposes