public void AfterScenarioWithReleaseBarcode() { TheUserReleaseBarcode("$KUCS0928U"); TheBarcodeIsReleased("$KUCS0928U"); setUp.CloseDriver(); setUp.ReopenBrowser(); }
public void AfterScenario() { try { // Take a screenshot. //var screenshotPathFile = setUp.MakeScreenshot(ScenarioContext.Current.ScenarioInfo.Title, ""); //CurrentTestContext.AddResultFile(screenshotPathFile); } catch { setUp.CloseDriver(); } }