コード例 #1
0
 public void AfterScenario()
 {
     if (scenarioContext.TestError != null)
     {
         var date = DateTime.Now.ToString("dd_MMMM_hh_mm_ss_ff");
         BrowserScreenshotTaker.TakeBrowserScreen(driver, date + ".png");
     }
     WebDriverFactory.CloseDriver(driver);
 }