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

186
Visualizações
puppeteer addStyleTag css not injecting

I'm trying to inject this stylesheet into the puppeteer page, but it doesn't actually apply(Promise rejects). The css file is saved in the same directory as the scraping file. I have also tried implementing the css directly using 'content: '.

scrape.ts

    await page.addStyleTag({ path: 'style.css' });

style.css

div.bp-desktopLGPlus .page-container {
  width: 100%;
}

div.wrapper {
  width: 48%;
  display: inline-table;
  margin: 0% 1% 0% 1%;
}

.PageLayout__RightAside {
  display: none;
}

.Wrapper.Card__Content {
  width: 100%;
}

div#gamepackage-news {
  display: none;
}

.tertiary-nav-container {
  display: none;
}

.table__TD {
  font-size: 120% !important;
}
about 4 years ago · Santiago Trujillo
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