Example #1
0
        //Clicking on Next button

        public static void ClickNextButton(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.NextButton).Click();
        }
Example #2
0
        //Verifying Whether the Change PostCode link displayed or not

        public static bool VerifyChangePostCodeLink(this IYourSupplier _ctmHome)
        {
            return(TestData.driverObj.FindElement(_ctmHome.ChangePostcodeLink).Displayed);
        }
Example #3
0
        //Clicking Eon

        public static void ClickEon(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.SelectEon).Click();
        }
Example #4
0
        //Clicking on Other Supplier Drop Down List

        public static void ClickOtherSupplierDDL(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.SelectingItemInDDL).Click();
        }
Example #5
0
        //Clicking GasAndElectricity

        public static void ClickGasAndElectricity(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.SelectGasAndElectricity).Click();
        }
Example #6
0
        //Clicking BritishGas

        public static void ClickBritishGas(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.SelectBritishGas).Click();
        }
Example #7
0
        //Verifying Whether the Text entered in PostCodeTextField or not

        public static bool VerifyPostCodeTextField(this IYourSupplier _ctmHome)
        {
            return(TestData.driverObj.FindElement(_ctmHome.PostCodeTextField).Displayed);
        }
Example #8
0
        //Clicking HaveBills

        public static void ClickHaveBills(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.FindElement(_ctmHome.SelectHaveBills).Click();
        }
Example #9
0
        //Entering Text in PostCodeTextField

        public static void EnterTextIntoPostCodeText(this IYourSupplier _ctmHome, string pSearchText)
        {
            TestData.driverObj.FindElement(_ctmHome.PostCodeTextField).SendKeys(pSearchText);
        }
Example #10
0
        //Navigating to CTM Page

        public static void NavigateToCTMHome(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.Navigate().GoToUrl(TestUrl.CTMUrl);
        }
Example #11
0
        //Verifying Whether it is navigated to your energy screen or not

        public static bool VerifyYourEnergyPageDisplayed(this IYourSupplier _ctmHome)
        {
            TestData.driverObj.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
            return(TestData.driverObj.FindElement(_ctmHome.YourEnergypageTitle).Displayed);
        }
Example #12
0
        //Verifying Whether who is your energy supplier section displayed or not

        public static bool VerifyWhoSupplyEnergy(this IYourSupplier _ctmHome)
        {
            return(TestData.driverObj.FindElement(_ctmHome.WhoSupplyEnergy).Displayed);
        }
Example #13
0
        //Verifying Whether the Gas and Electricity suppliers same or not section displayed or not

        public static bool VerifyGandESupplierSameRNSec(this IYourSupplier _ctmHome)
        {
            return(TestData.driverObj.FindElement(_ctmHome.GandESupplierSameRNSection).Displayed);
        }