Esempio n. 1
0
        public void createEditpillar(String SheetName, String Keyname)
        {
            HomePage              home                           = new HomePage(_driver);
            ArrayList             list                           = BaseClass.GetData("ER_TESTDATA", SheetName, "KeyName", Keyname);
            FormTemplatePage      formtemplate                   = new FormTemplatePage(_driver);
            ReferenceMaterialPage referenceMaterialPage          = new ReferenceMaterialPage(_driver);
            ReferenceMaterialPageDevelopmentActivities reference = new ReferenceMaterialPageDevelopmentActivities(_driver);
            ReferenceMaterialPagePillars referencePillars        = new ReferenceMaterialPagePillars(_driver);

            home.EperformReferenceMaterialArrowIcon.Click();
            home.EperformPillarsOption.Click();
            AddPillarButton.Click();
            referenceMaterialPage.EperformNameTextBox.SendKeys(list[1].ToString());
            referenceMaterialPage.EperformDescriptionTextBox.SendKeys(list[2].ToString());
            if (list[3].ToString() == "Yes")
            {
                referenceMaterialPage.EperformActiveYesRadioBtn.Click();
            }
            else
            {
                referenceMaterialPage.EperfromActiveNoRadioBtn.Click();
            }
            reference.EperformSubmit.Click();
            try
            {
                if (formtemplate.EperformSuccessMessage.Displayed)
                {
                    BaseMethods.verifyWebElement(formtemplate.EperformSuccessMessage, "Eperform Success Message is not displayed in manage form", "Eperform Success Message is displayed in manage form");

                    IWebElement element = _driver.FindElement(By.XPath("//tbody//tr//td[contains(text(),'" + list[1].ToString() + "')]"));
                    BaseMethods.webelementverify(element);
                    IWebElement EditElement = _driver.FindElement(By.XPath("//tbody//tr//td[contains(text(),'" + list[1].ToString() + "')]/../td//a[contains(text(),'Edit')]"));
                    EditElement.Click();
                    referenceMaterialPage.EperformNameTextBox.SendKeys(list[4].ToString());
                    referenceMaterialPage.EperformDescriptionTextBox.SendKeys(list[5].ToString());
                    reference.EperformSubmit.Click();
                    BaseMethods.webelementverify(element);
                }
                else
                {
                }
            }
            catch (Exception e)
            {
                BaseMethods.webelementverify(invalidErrorMessage);
            }
        }
Esempio n. 2
0
        public void sortablepillarpage()
        {
            HomePage              home                           = new HomePage(_driver);
            FormTemplatePage      formtemplate                   = new FormTemplatePage(_driver);
            ReferenceMaterialPage referenceMaterialPage          = new ReferenceMaterialPage(_driver);
            ReferenceMaterialPageDevelopmentActivities reference = new ReferenceMaterialPageDevelopmentActivities(_driver);
            ReferenceMaterialPagePillars referencePillars        = new ReferenceMaterialPagePillars(_driver);

            PillarNameText.Click();
            BaseMethods.webelementverify(reference.NameText);
            PillarNameText.Click();
            BaseMethods.webelementverify(reference.NameText);
            PillarDescriptionText.Click();
            BaseMethods.webelementverify(reference.DescriptionText);
            PillarDescriptionText.Click();
            BaseMethods.webelementverify(reference.DescriptionText);
            PillarActiveText.Click();
            BaseMethods.webelementverify(reference.PillarText);
            PillarActiveText.Click();
            BaseMethods.webelementverify(reference.PillarText);
        }
Esempio n. 3
0
        public void createPillar(String SheetName, String Keyname)
        {
            HomePage              home = new HomePage(_driver);
            ArrayList             list = BaseClass.GetData("ER_TESTDATA", SheetName, "KeyName", Keyname);
            ReferenceMaterialPage referenceMaterialPage          = new ReferenceMaterialPage(_driver);
            ReferenceMaterialPageDevelopmentActivities reference = new ReferenceMaterialPageDevelopmentActivities(_driver);
            ReferenceMaterialPagePillars referencePillars        = new ReferenceMaterialPagePillars(_driver);

            home.EperformReferenceMaterialArrowIcon.Click();
            home.EperformPillarsOption.Click();
            AddPillarButton.Click();
            referenceMaterialPage.EperformNameTextBox.SendKeys(list[1].ToString());
            referenceMaterialPage.EperformDescriptionTextBox.SendKeys(list[2].ToString());
            if (list[3].ToString() == "Yes")
            {
                referenceMaterialPage.EperformActiveYesRadioBtn.Click();
            }
            else
            {
                referenceMaterialPage.EperfromActiveNoRadioBtn.Click();
            }
            reference.EperformSubmit.Click();
        }