Repository navigation
Replies: 4 comments 2 replies
|
As you can see. There is no silver bullet for this. Something like this : Or wait for an element to get some height. I bet the solution is on some wait for expression that can do the trick for you. |
|
Damn, was hoping that you had a cupboard full of silver bullets! Let me play around with your suggestions and see if I can see any improvement. Thanks for getting back to me - much appreciated. |
|
I have resorted to using a delay of 3s after calling page.SetContentAsync - are you aware of any alternative to this? |
|
Neither am I - slightly embarassed to have it in my code. The issue is that I'm finding is that it's the content (SetContentAsync ) that is missing - my current WaitForExpressionAsync calls were passing as they reply on the css and check the formatting accordingly. I am injecting some text into the content - is there an expression to check for specific text in the content? |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am running some code to take an HTML string, fetch some external CSS files and then save the formatted output as a PDF.
Unfortunately, I regularly receive incomplete output or blank pages, despite the same raw HTML being passed to puppeteer-sharp.
As per various SO posts, I have added 'WaitUntilNavigation.Networkidle0' and 'WaitForSelectorAsync' code to see if that helps but the problem persists.
Does anyone have any suggestions that may help? Thanks in advance.
All reactions