Advertisement
Danny_Berova

test_evaluate

Apr 26th, 2020
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var parentElement = document.evaluate(xpaths.FB_Page_Scrape_Topic.Page_Scrape_Topic_Mention_Parent_DataHoverCard, document, null, 9, null).singleNodeValue;
  2.     var authElement = document.evaluate(xpaths.FB_Page_Scrape_Topic.Page_Scrape_Topic_Author_DataHoverCard, document, null, 9, null).singleNodeValue;
  3.     if (authElement) {
  4.       Logger.production("Author HoverCard EL: " + JSON.stringify(authElement));
  5.       if (authElement.getAttribute('data-hovercard')) {
  6.         Logger.production("Author HoverCard EL data_hovercard: " + authElement.getAttribute('data-hovercard'));
  7.       }
  8.       if (authElement.getAttribute('data-hovercard')) {
  9.         Logger.production("Author HoverCard EL text: commented");
  10.       }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement