Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

122
Visualizações
Is there a way to get an elements position from the HTML doctype?

Is there a way to return the document.querySelector(element name).getBoundingClientRect() coordinates from the HTML doctype. Is this information even stored in the innerHtml/outer Html?

For various complicated reasons executing .getBoundingClientRect() isn't reliably feasible on my particular webpage but downloading the HTML doctype is possible (I'm doing it through puppeteer which returns the full doctype using await page.content() ) The webpage in question has dynamically resizing elements whose height etc is listed in the inspect element as "auto".

I tried using Beautiful Soup to process the doctype but that would only let me find the element and it's text Content (The only things listed in the element when inspecting the DOM of it). Given it's a dynamic element only .getBoundingClientRect() seemed to give the coordinates but I am unable to regularly use that command on the webpage hence why I would like to be able to find that information from the HTML doctype. Does anyone know how to use python Beautiful soup/process the HTML in such a way to find the getBoundingClientRect() coordinates of a dynamically resizing element?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda