示例#1
0
        public void UpdatingPrice(String expectedArchive, String expectedFront, String expectedAll, IETTVAdminPortal.Chrome.Chrome_IndividualChannelPricing icpAdmin)
        {
            //Enter Archive front price value
            icpAdmin.ArchiveTextField(rowcounter).Clear();
            icpAdmin.ArchiveTextField(rowcounter).SendKeys(expectedArchive);

            //Enter random front price value
            icpAdmin.FrontTextField(rowcounter).Clear();
            icpAdmin.FrontTextField(rowcounter).SendKeys(expectedFront);

            //Enter random All price value
            icpAdmin.AllTextField(rowcounter).Clear();
            icpAdmin.AllTextField(rowcounter).SendKeys(expectedAll);

            icpAdmin.SaveButton().Click();
        }
示例#2
0
        //This function verify the status of all elements as per checkbox status
        public void VerifyStatusOfElements(IETTVAdminPortal.Chrome.Chrome_IndividualChannelPricing icpAdmin)
        {
            Boolean checkBoxStatus = icpAdmin.IsElementChecked("ContentPlaceHolder1_GridView1_chkRow_" + rowcounter);


            // Uncheck the CheckBox and Verify the status of all columns

            //Verify the status of checkbox
            if (checkBoxStatus == true)
            {
                //uncheck the checkBox
                checkBox = driver.FindElement(OR.GetElement("BuyChannel", "GridViewCheckRow", "TVAdminPortalOR.xml", rowcounter));
                checkBox.Click();
            }

            //check status of all columns

            //1.checkBox
            Assert.AreEqual(false, icpAdmin.IsElementChecked("ContentPlaceHolder1_GridView1_chkRow_" + rowcounter));

            //2.Archive
            Assert.AreEqual(false, icpAdmin.ArchiveTextField(rowcounter).Enabled);

            //3.Front
            Assert.AreEqual(false, icpAdmin.FrontTextField(rowcounter).Enabled);

            //4.All
            Assert.AreEqual(false, icpAdmin.AllTextField(rowcounter).Enabled);

            //perform check operation on checkbox and verify
            checkBox = driver.FindElement(OR.GetElement("BuyChannel", "GridViewCheckRow", "TVAdminPortalOR.xml", rowcounter));
            checkBox.Click();

            //Archive
            Assert.AreEqual(true, icpAdmin.ArchiveTextField(rowcounter).Enabled);

            //Front
            Assert.AreEqual(true, icpAdmin.FrontTextField(rowcounter).Enabled);

            //All
            Assert.AreEqual(true, icpAdmin.AllTextField(rowcounter).Enabled);
        }