public void CreateAccount() { LoginPage loginPage = new LoginPage(); CreateAccount account = new CreateAccount(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); loginPage.ClickCreate(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); account.enterAccountInfo(Data.GetNewAccountEmail(), "Test Account 2", Data.GetPassword(), "The Hint"); account.ClickSubmit(); account.ClickYesOnAlert(); Driver.Navigate().GoToUrl("https://mailsac.com/login"); MailSac mailSac = new MailSac(); mailSac.LogIn(Data.GetMailSacUser(), Data.GetPassword()); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); mailSac.ClickMailBox2(); bool emailRecieved = mailSac.IsEmailReceived("Welcome"); Assert.That(emailRecieved, Is.True, "Can't find the email"); //TODO: Change to only take screenshot of failed test cases GetScreenshot.TakeScreenshot(); mailSac.DeleteEmail(); }