puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

MainFrame of Page.cs throws NullReferenceException

Open sivoplyasov opened this issue 3 months ago • 2 comments

In my project I am using the "EvaluateFunctionAsync" and "QuerySelectorAsync" methods of the Page object and this methods throws NullRefferenceException. It happens kinda infrequently and because of it I even wasn't able to reproduce it, I can see this problem only in logs.

It seems to me it happens because of MainFrame property is null for some reason. Image Image

I saw another issue with the nullref, will it fix this problem?

Thanks

sivoplyasov avatar Sep 01 '25 14:09 sivoplyasov