1 month ago

Puppeteer.js : get href attribute of link with given text

Posted 1 month ago by Gabotronix

Hi everybody, is there a way in puppeteer to get the href attribute of an anchor element with text "See more".

I want to grab the href attribute of an element like this:

<a href="/this-is-what-i-want">See more</a>

maybe it's possble to do with eval?

Please sign in or create an account to participate in this conversation.