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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I have resorted to using a delay of 3s after calling page.SetContentAsync - are you aware of any alternative to this? |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions