I am trying to grab an element from the DOM of the page I am scraping in puppeteer.
After the page is loaded, I call page.$('.class-name')
. It returns some weird object of the form { ClickTale: {} }
.
When I call document.querySelector('.class-name')
from the chrome console, I get a completely different object that corresponds to the element I am looking for.
My goal is to access the href property of said element in puppeteer. Thanks