Exemple #1
0
        private static void FillDataOverViewPanel(IWebDriver driver, bool visibleCheck, string fillDataBufferDistance, string ddlOptionName, string fillDataMinScale, string fillDataMaxScale, bool saveToLayerCheck, string ddlOptionNameTargetLayer, string ddlOptionNameIsolatingValve, string ddlOptionNameIsolatedHydrants, string ddlOptionNameIsolatedCustomers)
        {
            IList <IWebElement> overviewContainer = driver.FindElements(By.ClassName("field"));

            if (visibleCheck)
            {
                AppCommonUtility.ClickCheckBoxUsingLabelName(overviewContainer, "Visible");
            }

            AppCommonUtility.FillDataTextBoxUsingLabelName(overviewContainer, "Buffer distance", fillDataBufferDistance);

            DropDownSelect(driver, "Unit", ddlOptionName);

            AppCommonUtility.FillDataTextBoxUsingLabelName(overviewContainer, "Min scale", fillDataMinScale);

            AppCommonUtility.FillDataTextBoxUsingLabelName(overviewContainer, "Max scale", fillDataMaxScale);

            if (saveToLayerCheck)
            {
                AppCommonUtility.ClickCheckBoxUsingLabelName(overviewContainer, "Save to layer");
                Thread.Sleep(200);

                DropDownSelect(driver, "Target layer", ddlOptionNameTargetLayer);

                DropDownSelectOverview(driver, "Isolating_Valves", ddlOptionNameIsolatingValve);

                DropDownSelectOverview(driver, "Isolated_Hydrants", ddlOptionNameIsolatedHydrants);

                DropDownSelectOverview(driver, "Isolated_Customers", ddlOptionNameIsolatedCustomers);
            }
        }
Exemple #2
0
        private static void FillDataOtherPanel(IWebDriver driver, string fillDataImageHeight, string fillDataImageWidth, string fillDataTimeout, string fillDataDisplayText)
        {
            IList <IWebElement> otherContainer = driver.FindElements(By.ClassName("field"));

            AppCommonUtility.FillDataTextBoxUsingLabelName(otherContainer, "Image height", fillDataImageHeight);

            AppCommonUtility.FillDataTextBoxUsingLabelName(otherContainer, "Image width", fillDataImageWidth);

            AppCommonUtility.FillDataTextBoxUsingLabelName(otherContainer, "Timeout", fillDataTimeout);

            AppCommonUtility.FillDataTextBoxUsingLabelName(otherContainer, "Display text", fillDataDisplayText);
        }
Exemple #3
0
        private static void FillDataInputInPanel(IWebDriver driver, string fillDataToolTip, string ddlOptionName)
        {
            IList <IWebElement> inputContainer = driver.FindElements(By.ClassName("field"));

            AppCommonUtility.FillDataTextBoxUsingLabelName(inputContainer, "Tooltip", fillDataToolTip);

            DropDownSelect(driver, "Type", ddlOptionName);

            AppCommonUtility.FindElementDynamically(driver, "symbol-td-item");
            IWebElement iconPanel = driver.FindElement(By.ClassName("symbol-td-item"));

            AppCommonUtility.ClickAndSelectFeature(iconPanel);
        }
Exemple #4
0
        private static void FillDataOutputPanel(IWebDriver driver, string fillDataLabel, bool skippableCheck, string ddlOptionName, string fillDataTooltip, string fillDataSummaryText, string fillDataDisplayText, string fillDataMinScale, string fillDataMaxScale, bool exportToCsvCheck, bool saveToLayerCheck, string ddlOptionNameTargetLayer)
        {
            IList <IWebElement> outputContainer = driver.FindElements(By.ClassName("field"));

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Label", fillDataLabel);

            if (skippableCheck)
            {
                AppCommonUtility.ClickCheckBoxUsingLabelName(outputContainer, "Skippable");
                Thread.Sleep(200);

                DropDownSelect(driver, "Unique ID field", ddlOptionName);
            }

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Tooltip", fillDataTooltip);

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Summary text", fillDataSummaryText);

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Display text", fillDataDisplayText);

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Min scale", fillDataMinScale);

            AppCommonUtility.FillDataTextBoxUsingLabelName(outputContainer, "Max scale", fillDataMaxScale);

            if (exportToCsvCheck)
            {
                AppCommonUtility.ClickCheckBoxUsingLabelName(outputContainer, "Export to CSV");
            }

            if (saveToLayerCheck)
            {
                AppCommonUtility.ClickCheckBoxUsingLabelName(outputContainer, "Save to layer");
                Thread.Sleep(200);

                DropDownSelect(driver, "Target layer", ddlOptionNameTargetLayer);
            }

            IWebElement iconPanel = driver.FindElement(By.ClassName("symbol-td-item"));

            AppCommonUtility.ClickAndSelectFeature(iconPanel);
        }