using Microsoft.Playwright; namespace Beam.Playwright { public delegate Task PlaywrightAsyncManipulator(IPage page); public static class PlaywrightContext { public static Lazy Playwright { get; set; } public static Lazy Browser { get; set; } //public static Task OpenBrowser() { //} static PlaywrightContext() { Playwright = new Lazy(() => Microsoft.Playwright.Playwright.CreateAsync().Result); Browser = new Lazy(() => Playwright.Value.Chromium.LaunchAsync().Result); } } }