public void ShouldLoadTheHomePageAndTheCheckButtonOnChapter2_FindButton() { Chapter2 ch2 = new Chapter2(driver).Load(); Screenshot ss = ((ITakesScreenshot)driver).GetScreenshot(); string screenshot = ss.AsBase64EncodedString; byte[] screenshotAsByteArray = ss.AsByteArray; ss.SaveAsFile("seleniumtest", ImageFormat.Png); ss.ToString(); Assert.True(ch2.isButtonDisplayed("but2")); }
public void ShouldLoadTheHomePageAndTheCheckButtonOnChapter2_v2() { Chapter2 ch2 = new Chapter2(driver).Load(); Assert.True(ch2.isButtonDisplayed("but1")); }