public void SaveWebDriverScreenShotTest() { InternetPage internetPage = new InternetPage(this.DriverContext); internetPage.OpenHomePage(); internetPage.GoToFileDownloader(); var screenShotNumber = FilesHelper.CountFiles(this.DriverContext.ScreenShotFolder, FileType.Png); DownloadPage downloadPage = new DownloadPage(this.DriverContext); downloadPage.SaveWebDriverScreenShot(); var nameOfScreenShot = downloadPage.CheckIfScreenShotIsSaved(screenShotNumber); Assert.IsTrue(nameOfScreenShot.Contains(this.DriverContext.TestTitle), "Name of screenshot doesn't contain Test Title"); }