public void ThenIShouldBeOnTheScanProductPage() { _OnBoardingPage.WaitForElementPresent(_OnBoardingPage.BarcodeScanningPage, 3); Assert.IsTrue(_OnBoardingPage.BarcodeScanningPage.Displayed(), "The barcode scanning page is not displayed."); Assert.IsTrue(_OnBoardingPage.SearchProductButton.Displayed(), "The Search Product button is not displayed."); Assert.IsTrue(_OnBoardingPage.ScanStatusMessageLabel.Displayed(), "The scanner page text is not displayed."); }
public void GivenIAmOnTheOnBoardPage() { _OnBoardingPage.WaitForElementPresent(_OnBoardingPage.OnBoardingPageContainer, 10); Console.WriteLine("Is onbaord page displayed: " + _OnBoardingPage.OnBoardingPageContainer.Displayed()); Assert.IsTrue(_OnBoardingPage.OnBoardingPageContainer.Displayed(), "not on the onboard page"); }
public void ThenIShouldBeNavigatedToTheOnboardingTeaserSavingsPage() { _OnBoardingPage.WaitForElementPresent(_OnBoardingPage.OnBoardingPriceMedsTeaserSavingsText, 5); Assert.IsTrue(_OnBoardingPage.OnBoardingPriceMedsTeaserSavingsText.Displayed(), "not on the teaser account page"); }