public static void NextButtonClickCreateAppPanel(IWebDriver driver)
        {
            AppCommonUtility.FindElementDynamically(driver, "button-container");
            IWebElement         nextBtnDiv = driver.FindElement(By.ClassName("button-container"));
            IList <IWebElement> btnList    = nextBtnDiv.FindElements(By.ClassName("jimu-float-trailing"));

            AppCommonUtility.ListClickActionByName(btnList, "Next");
        }
Exemple #2
0
        public static void ClickAddWidgetIcon(IWebDriver driver)
        {
            AppCommonUtility.FindElementDynamically(driver, "tab-item-title");
            IList <IWebElement> ele = driver.FindElements(By.ClassName("tab-item-title"));

            AppCommonUtility.ListClickActionByName(ele, "Widget");
            //IWebElement addIcon = driver.FindElement(By.ClassName("", "Widget"));
            //addIcon.Click();
        }
Exemple #3
0
        public static void ClickMenuOption(IWebDriver driver, TestContext context)
        {
            AppCommonUtility.FindElementDynamically(driver, "config-section");

            IWebElement         controlTable = driver.FindElement(By.ClassName("config-section"));
            IList <IWebElement> menuOptions  = controlTable.FindElements(By.ClassName("tab-item-title"));

            //  Need to insert Data in excel
            AppCommonUtility.ListClickActionByName(menuOptions, context.DataRow["menuOption"].ToString());
        }
Exemple #4
0
        public static void SelectWidgetFormList(IWebDriver driver, TestContext context)
        {
            IList <IWebElement> widgetList = driver.FindElements(By.ClassName("label"));

            AppCommonUtility.ListClickActionByName(widgetList, "NetworkTrace");


            //IWebElement widgetContainer = driver.FindElement(By.ClassName("widgetList"));
            //IList<IWebElement> widgetList1 = widgetContainer.FindElements(By.ClassName("label"));

            //AppCommonUtility.ListClickActionByName(widgetList1, context.DataRow["NetworkTrace"].ToString());

            //  Click on OK button
            CreateNewClickOKCancel(driver, context);
        }
Exemple #5
0
        private static void CreateNewClickOKCancel(IWebDriver driver, TestContext context)
        {
            // Need to insert condition in Excel
            bool check = Convert.ToBoolean(context.DataRow["checkBtn"].ToString());

            IWebElement         buttonContainer  = driver.FindElement(By.ClassName("button-container"));
            IList <IWebElement> buttonCollection = buttonContainer.FindElements(By.TagName("div"));

            if (check)
            {
                AppCommonUtility.ListClickActionByName(buttonCollection, "OK");
            }
            else
            {
                AppCommonUtility.ListClickActionByName(buttonCollection, "Cancel");
            }
        }
Exemple #6
0
        public static void ValidateGeoProcessingServiceUrlClickOK(IWebDriver driver, TestContext context)
        {
            Thread.Sleep(1000);
            AppCommonUtility.FindElementDynamically(driver, "operations");
            IWebElement         popupOfWidgetSelect = driver.FindElement(By.ClassName("operations"));
            IList <IWebElement> OKBtnOftask         = popupOfWidgetSelect.FindElements(By.ClassName("jimu-float-trailing"));

            AppCommonUtility.ListClickActionByName(OKBtnOftask, "OK");
            //try
            //{
            //    AppCommonUtility.FindElementDynamically(driver, "operations");
            //}
            //catch (Exception)
            //{
            //    // URL is not valid
            //}

            //  Click on OK button
            // CreateNewClickOKCancel(driver, context);
        }