Example #1
0
        public void Start()
        {
            HomePage homePage = new HomePage(driver);

            homePage.ClickCookiesContinueBtn();
            AdviserPage adviserPage = homePage.GoToAdviserPage();

            SwitchTabs();

            adviserPage.ClickContinueBtn();

            _ourPeoplePage = adviserPage.GoToOurPeoplePage();
        }
Example #2
0
        public void TestValidPeopleSearch()
        {
            var ourPeoplePage = new OurPeoplePage(GetDriver());

            //Creating an instance of the page component class using PageFactory
            PageFactory.InitElements(GetDriver(), ourPeoplePage);

            //This is where the action is performed
            //Close Pop Up
            ourPeoplePage.Click(ourPeoplePage.FindByLinkText("Continue"));
            ourPeoplePage.InputSearch("Andy");

            Assert.IsTrue(ourPeoplePage.VerifyTextContains("Andy"));
        }