public void CreateApplicationUrl() { _webDriver = DriverContext .GetDriver(TestContext.Parameters.Get("browser", AtConfiguration.GetConfiguration("Browser"))); _webDriver.Navigate().GoToUrl(AtConfiguration.GetConfiguration("TestUrl")); }
public void NavigateToGmailPage(string app) { _loginPage.EnterLogin(AtConfiguration.GetConfiguration("Email")); _loginPage.EnterPassword(AtConfiguration.GetConfiguration("Password")); }
public void ThenVerifyThatEmailsAreReceived() { var actualInboxData = (List <MainAreaMsgModel>)_inboxPage.GetInboxInfo(); var expectedInboxData = ((List <NewMessageModel>)_scenarioContext["newMessages"]); var actualInboxSubjects = actualInboxData.Where(x => x.Sender == "me") .Select(x => x.Subject).ToList(); var expectedInboxSubjects = expectedInboxData.Where(x => x.RecipientCc == AtConfiguration.GetConfiguration("Email")) .Select(x => x.Subject).ToList(); Assert.Multiple(() => { CollectionAssert.AreEquivalent(expectedInboxSubjects, actualInboxSubjects, "Subject verification are fails"); Assert.AreEqual(expectedInboxSubjects.Count(), actualInboxSubjects.Count(), $"The number of new messages \"{actualInboxSubjects.Count()}\" " + $"does not match the number of messages sent \"{expectedInboxSubjects.Count()}\""); }); }