Website. I am trying to get access to the claimed in this website using puppeteer. the claimed is an h4 a child of a div with class "planet-desktop_planetContainer_v6lY1". Which is also a child of div. A total makes a 7 divs then a body element.
const heading4 = await page.$eval("planet-desktop_planetContainer_v6lY1 > h4", el => el.textContent);
console.log(heading4)
const n = await page.$("[class='planet-details-desktop_planetHeading_2ski7']")
const t = await (await n.getProperty('textContent')).jsonValue()
console.log(t)
const elements = await page.$$("h4");
elements.forEach(async element => {
const text = await (await element.getProperty("innerText")).jsonValue();
console.log(text);
});
I tried all of them and none of them returned the child h4