I am looking to get the innerText of a h3 but I would like to ignore the nested span.
Example:
<h3>
<span>NEW</span>
Blog Article #69
</h3>
Here's my current code:
const title = await blogArticle.$eval(
"h3",
(el) => el.textContent
);
It returns
NEWBlog Article #69
Also tried innerText with no success and I can't manage to delete the span from the DOM.