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: '.
await page.addStyleTag({ path: '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;
}