hardkoded / puppeteer-sharp

Headless Chrome .NET API
https://www.puppeteersharp.com
MIT License
3.42k stars 446 forks source link

Use page number/total pages inside of the page body not only in footer/header #2714

Closed zejtin closed 3 months ago

zejtin commented 3 months ago

Description

I am trying to use page number/total pages inside of the page, by that i mean outside of header/footer, Not sure is it a bug or is it ignored by design.

Complete minimal example reproducing the issue

HTML that is being used is done through razor on my side so there is no external site. I tried putting class in span by documentation in the body of HTML but it is being ignored: <div><span class="pageNumber"></span></div>

Expected behavior:

To display page number or total pages depending on the class used outside of header/footer

Actual behavior:

Nothing happens :)

Versions

PuppeteerSharp 5.0.0 .NET Core 6

kblok commented 3 months ago

Hey @zejtin, Unfortunately, that's a Chrome feature. There is not much we can do on our side. You can create a ticket in chromium bugs and see what they say.