title: Accessing windows.localStorage with PuppeteerSharp
body: <p>Does anyone provide an example of how to access windows.localStorage using PuppeteerSharp?<br>
  There are lots of examples of how to do it using (JS)Puppeteer, but I'm having problems doing it in C#.<br>
  <br>
  As far as I can tell, I need to use <code>EvaluateFunctionAsync</code>, and do something like the following:<br>
  <code>var localStorage = await page.EvaluateFunctionAsync(&quot;async () =&gt; await window.localStorage&quot;);</code><br>
  But this just returns an empty JToken.<br>
  Can anyone help me out?</p>