code: function(cssSelector, textToMatch) {
  
          // method to execute within the DOM to find elements containing text
          function clickElementInDom(query, content) {
  
              // get the list of elements to inspect
              var elements = document.querySelectorAll(query);
  
              // workout which property to use to get inner text
              var txtProp = ('textContent' in document) ? 'textContent' : 'innerText';
  
              for (var i = 0, l = elements.length; i < l; i++) {
  
                  // if we have content, only click items matching the content
                  if (content) {
  
                      if (elements[i][txtProp] === content) {
                          elements[i].click();
                      }
                  }
                  // otherwise click all
                  else {
                      elements[i].click();
                  }
              }
          }
  
          // grab matching elements
          return driver.findElements(by.js(clickElementInDom, cssSelector, textToMatch));
      }
docs: clicks an element (or multiple if present) that is not visible, useful in situations where a menu needs a hover before a child link appears
  @param {string} cssSelector - css selector used to locate the elements
  @param {string} textToMatch - text to match inner content (if present)
  @returns {Promise} resolves if element found and clicked, otherwise rejects
  @example
  helpers.clickHiddenElement('nav[role="navigation"] ul li a','Safety Boots');