function findAnchorByContent(content, cb) {
  element.all(by.css('a')).then(function (anchors) {
    anchors.forEach(function (anchor) {
      anchor.getText().then(function (anchorText) {
        if (anchorText === content) {
          cb(anchor);
        }
      });
    });
  });
}