public void UserActivatedTest() { // Arrange Gmail.DeleteUnread(); ForgotPasswordDialog.HelpMe(Users.Activated); ForgotPasswordDialog.WaitForClose(); Gmail.WaitLetter(); Gmail.GetLetterLinks(); Assert.AreEqual(Users.Activated.Email, Gmail.LetterLinks["User"].Text); Browser.Goto(Gmail.LetterLinks["Reset"].Href); // Act var updateDialog = Dialogs.Update; updateDialog.UpdatePassword(Users.Activated.Password, Users.Activated.Password); var alertText = Browser.GetAlertText(); Browser.AcceptAlert(); var signedInPage = Pages.Home; signedInPage.Open(); // Assert updateDialog.WaitForClose(); Assert.IsFalse(ForgotPasswordDialog.Root.Displayed); Assert.AreEqual("http://lobster.media/marketplace", Browser.GetDriver.Url); Assert.AreEqual("Your password has been updated and you are now signed in!", alertText); Assert.IsTrue(signedInPage.AboutButton.Displayed); Assert.IsTrue(signedInPage.MyProfile.Displayed); }