コード例 #1
0
        public void Test005_FurtherEducaionTab()
        {
            bool            IsElementPresent;
            PearsonHomePage homepage = new PearsonHomePage(driver);

            homepage.furtherEducationLink.Click();
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
            //IsElementPresent = driver.FindElement(By.CssSelector("div.text:nth-child(4) > h2:nth-child(1) > b:nth-child(1)")).Displayed;
            IsElementPresent = driver.FindElement(By.XPath("//*[contains(text(), 'Going further for Further Education')]")).Displayed;
            Assert.True(IsElementPresent);
        }
コード例 #2
0
        public void Test004_SecondryTab()
        {
            bool            IsElementPresent;
            PearsonHomePage homepage = new PearsonHomePage(driver);

            homepage.secondaryLink.Click();
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(3));
            IsElementPresent = driver.FindElement(By.XPath("//*[contains(text(), 'Improving teaching and learning for all')]")).Displayed;
            Assert.True(IsElementPresent);
            IsElementPresent = driver.FindElement(By.LinkText("Qualifications and specifications")).Displayed;
            Assert.True(IsElementPresent);
        }
コード例 #3
0
        public void Test003_PrimaryTab()
        {
            bool            IsElementPresent;
            PearsonHomePage homepage = new PearsonHomePage(driver);

            homepage.clickPrimaryLink();
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(3));
            IsElementPresent = driver.FindElement(By.XPath("//*[contains(text(), 'Welcome to Pearson Primary')]")).Displayed;
            Assert.True(IsElementPresent);
            IsElementPresent = driver.FindElement(By.LinkText("Find your local consultant")).Displayed;
            Assert.True(IsElementPresent);
        }