Postman no longer support jQuery and it is said to be a pros. But how to find specific html tag by unique property with queryselector? I have tried this code:
request:
GET www.w3schools.com/html/html_lists.asp
test:
var responseHTML = document.createElement(“html”);
responseHTML.innerHTML = responseBody;
inputs = responseHTML.querySelector(".w3col > ol > li:nth-child(1)");
tests["First item in list is named 'First item'"] = inputs.innerHTML === "First item";
but it gives an error “ReferenceError: document is not defined”. Where is declared support of native JS in sandbox?