Esempio n. 1
0
 public async Task closeBrowser()
 {
     if (_scenarioContext.TestError != null)
     {
         await Helpers.Helpers.Screenshot(page);
     }
     await browser.DisposeAsync();
 }
        protected override async Task FinallyAsync(IExecutionContext context)
        {
            await _browser.DisposeAsync();

            _playwright.Dispose();
            await _app.DisposeAsync();

            await base.FinallyAsync(context);
        }