public void EnteredAllInfo_ClickConfirm_ThankYouPage() { var reviewPage = new ReviewPage(); reviewPage.Open(); reviewPage.FillOutEverything(); reviewPage.ConfirmButton.Click(); var thankYouMessage = reviewPage._wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//h1"))); Assert.IsTrue(thankYouMessage.Displayed); reviewPage.Dispose(); }
public void EditBusinessInfo_ChangeCost_ReviewPageUpdatedwithNewCost() { var reviewPage = new ReviewPage(); reviewPage.Open(); reviewPage.FillOutEverything(); reviewPage.EditBusinessInfoLink.Click(); reviewPage.EnterNewProjCost("9999"); reviewPage.ContinueButton.Click(); reviewPage._wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@class='text-muted']"))); var newProjCost = reviewPage.reviewProjCostText; Assert.AreEqual("$9999", newProjCost.Text); reviewPage.Dispose(); }