I am trying to extract company name from specific website but even element exist in the html queryselector returning null I have tried using DOMContentLoaded, adding script at the bottom of the HTML and adding defer to the script but still it is not working
document.addEventListener("DOMContentLoaded", () => {
const companyNameQuery = document.querySelector("#fixedCpName > div > div:nth-child(1) > div.col-md-5 > h1");
const countryNameQuery = document.querySelector("#fixedCpName > div > div.row.marg-t-15 > div.col-lg-6.col-md-5 > div.pull-left > span.company-country");
console.log(countryNameQuery);
});