anyone know what chromeless's equivalent of .url(f...
# prisma-whats-new
f
anyone know what chromeless's equivalent of .url(function(link) { is?
i
Is it
chromeless.goto('url-here')
?
f
After a ton of experimenting:
.evaluate(() => { // this will be executed in headless chrome const links = [].map.call( document.getElementsByClassName('twitter-timeline-link u-hidden'), a => (a.href) ) return JSON.stringify(links) })
console.log(links)
const and goto above it
i
I still a bit confused. Did the method I wrote not do it for you?
I’ve never touched chromeless
f
No, I was trying to retrieve a link .. not goto one
.goto is well documented .. actually printing or copying a link or array of links is not
i
Ahh
Okay
Sorry I couldn’t be of more help!
❤️ 1