function findNodeByInnerText(text) {
  return dom.findNode(document.body, (node) => {
    try {
      /** @suppress {checkTypes} suppression added to enable type checking */
      const display = userAgent.IE ? style.getCascadedStyle(node, 'display') :
                                     style.getComputedStyle(node, 'display');

      return dom.getRawTextContent(node) == text && 'none' != display &&
          node.nodeType == NodeType.ELEMENT;
    } catch (e) {
      return false;
    }
  });
}
@param {string} text
@return {Node} Node whose inner text maches the given text.
@suppress {checkTypes} suppression added to enable type checking