public void ChooseAmountOfRoomsMoreThanTen() { Logger.InitLogger(); try { steps.AddingRoom(); Assert.AreEqual("10", steps.MaxValueQuantityRooms()); Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); } catch (Exception ex) { Logger.Log.Error(ex); var screenshot = Driver.TakeScreenshot(); var filePath = "ะก:\\" + DateTime.Now.ToString("dd_MM_yy_HH_mm_ss") + ".png"; screenshot.SaveAsFile(filePath); throw ex; } }