public static void TearDown() //metodas testo failinimams { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) //kai testo rezultatas nera sekmingas, daromas screenshotas { MyScreenshot.TakeScreenshot(driver); //metodo issaukimas } }
public void Screenshot() { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) { MyScreenshot.TakeScreenshot(driver); } }