Array.prototype.slice.call(dom.window.document.getElementsByTagName("p")).map(p => { console.log(p.textContent); })