Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!