Exemplo n.º 1
0
        public static void ClickDeleteBtnInGrid(string gridXpath, int row, int column)
        {
            var element = GetGridElement(gridXpath, row, column);

            element?.Click();
            GenericHelper.WaitForLoadingMask();
        }
Exemplo n.º 2
0
        public static void SelectFromKendoDropDown(By selectArrow, string value)
        {
            var arrow = GenericHelper.GetElement(selectArrow);

            JavaScriptExecutorHelper.ScrollElementAndClick(arrow);
            Thread.Sleep(500);
            var list = GenericHelper.GetVisiblityOfElement(By.XPath("//li[text()='" + value + "']"));

            list.Click();
            GenericHelper.WaitForLoadingMask();
            Thread.Sleep(1000);
        }
Exemplo n.º 3
0
        public static void SelectItemPerList(string number)
        {
            var arrow = GenericHelper.GetElement(DownArrow);

            JavaScriptExecutorHelper.ScrollElementAndClick(arrow);
            Thread.Sleep(500);
            var list = GenericHelper.GetVisiblityOfElement(By.XPath("//li[text()='" + number + "']"));

            list.Click();
            GenericHelper.WaitForLoadingMask();
            Thread.Sleep(1000);
        }
Exemplo n.º 4
0
        public static void ClickVerifyBtnInGrid(string gridXpath, int row, int column)
        {
            if (!GenericHelper.IsElementPresentQuick(
                    By.XPath(GetGridElementXpath(gridXpath, row, column) + "//i[2]")))
            {
                return;
            }

            var element =
                GenericHelper.GetElement(
                    By.XPath(GetGridElementXpath(gridXpath, row, column) + "//i[2]"));

            element.Click();
            GenericHelper.WaitForLoadingMask();
        }