How can I declare this in the Postman sandbox?
I am looking for a solution like the following:
var h1Text = window.document.querySelector("h1").innerHTML;
console.log(h1Text);
Additionally, I need to search for something in the following manner:
I have multiple <div>
tags and I need to pinpoint a specific one. Should I iterate over them using a loop or is there a more efficient method to fetch element data based on the desired property?