private async Task<Browser> GetBrowserAsync(bool headless)
{
if (browser == null)
{
var browserFetcher = new BrowserFetcher();
var revisionInfo = await browserFetcher.DownloadAsync(BrowserFetcher.DefaultRevision);
var browser = await await Puppeteer.LaunchAsync(new LaunchOptions { ExecutablePath = revisionInfo.ExecutablePath });
}
return await Task.FromResult(browser);
}