示例#1
0
        public void AccessSpousePage_NoInfoClickContinue_ValidateAllFields()
        {
            var spousePage = new SpousePage();

            spousePage.OpenSpousePage("Mirana", "Moon", "*****@*****.**", "9198958597", "Night Elf Wathchers");
            spousePage.ContinueButton.Click();
            Assert.AreEqual("Required", spousePage.firstNameError.Text);
            Assert.AreEqual("Required", spousePage.lastNameError.Text);
            Assert.AreEqual("Required", spousePage.emailError.Text);
            Assert.AreEqual("Required", spousePage.phoneError.Text);
            spousePage.Dispose();
        }
示例#2
0
        public void CompleteWelcomePage_ClickContinue_AccessSpousePage()
        {
            var spousePage = new SpousePage();

            spousePage.OpenSpousePage("Illidan", "Stormrage", "*****@*****.**", "9199199191", "For the Horde, Inc");
            var spouseTitle =
                spousePage._wait.Until(
                    ExpectedConditions.ElementIsVisible(By.XPath("//*[@class='card-title text-lg-center']")));

            Assert.AreEqual("Spouse - Guidant Business Financial Survey", spouseTitle);
            spousePage.Dispose();
        }
示例#3
0
        public void AccessSpousePage_CheckSpouseBallTracker_BallTrackerGreen()
        {
            var spousePage = new SpousePage();

            spousePage.OpenSpousePage("Illidan", "Stormrage", "*****@*****.**", "9199199191", "For the Horde, Inc");
            var spouseBallTrackerColor = spousePage._wait.Until(ExpectedConditions.ElementExists(
                                                                    By.XPath("//div[@class='col-lg-4 mt-lg-4 mb-lg-2 text-center d-none d-lg-block']/div[2]"))).GetAttribute("class");


            Assert.AreEqual("tracker tracker-lg tracker-lg-green rounded-circle", spouseBallTrackerColor);

            spousePage.Dispose();
        }