document.querySelector("div.test>p:first-child");
document.querySelectorAll("div.test>p:first-child")[0];