Ejemplo n.º 1
0
        public void ThenTheMessageOverlayAppearsAfterSeconds(int seconds)
        {
            Thread.Sleep(seconds * 1000 + 2000);
            var masterPage = new MasterPage();
            Assert.IsTrue(FindElement(masterPage.MessageOverlayLocator).Displayed);

        }
        public void GivenISearchTheTextInTheTopNavigation(string keyword)
        {
            //var aegonHomePage = new AegonHomePage();
            //SearchResultPage searchResultPage = aegonHomePage.search(keyword);

            var masterPage = new MasterPage();
            SearchResultPage searchResultPage = masterPage.TopNavSearch(keyword);


        }
 public SiteMapAndFooterSteps()
 {
     CurrentPage = new MasterPage();
 }
Ejemplo n.º 4
0
 public void ThenTheTextOnTheOverlayShouldBe(string text)
 {
     var masterPage = new MasterPage();
     Assert.IsTrue(FindElement(masterPage.MessageOverlayLocator).Text.ToLower().Contains(text.ToLower()));
 }
 public void ThenTheCookieWidgetDisappears()
 {
     var masterPage = new MasterPage();
     Thread.Sleep(3000);
     Assert.IsFalse(Page.CookieWidgetLocator.Displayed);
 }
 public void WhenIClickIAgreeButton()
 {
     var masterPage = new MasterPage();
     Page.CookieWidgetIAgreeButton.Click();
 }
 public void GivenISeeCookieWidget()
 {
     var masterPage = new MasterPage();
     Assert.IsTrue(Page.CookieWidgetLocator.Displayed);
 }
 public void ThenIShouldSeeIAgreeButton()
 {
     var masterPage = new MasterPage();
     Assert.IsTrue(Page.CookieWidgetIAgreeButton.Displayed);
 }
 public void ThenIShouldSeeCookieWidgetWith(string title)
 {
     var masterPage = new MasterPage();
     Assert.IsTrue(Page.CookieWidgetTitleLocator.Text.ToLower().Contains(title.ToLower()));
 }
 public CookieWidgetChecksSteps()
 {
     CurrentPage = new MasterPage();
 }