Ejemplo n.º 1
0
        public static IWebElement GetValidXpath(IWebDriver driver, string Tvalue, string Target)
        {
            JWait.WaitForAjaxComplete(driver, 30);
            string sXpath = JXpath.Valid(Tvalue, Target);

            return(element = JFind.XPath(driver, sXpath));
        }
Ejemplo n.º 2
0
        public static IWebElement GetDirectionElement(IWebDriver driver, string Tvalue)
        {
            JWait.WaitForAjaxComplete(driver, 30);
            string sXpath = JXpath.DirectionButton(Tvalue);

            return(element = JFind.XPath(driver, sXpath));
        }
Ejemplo n.º 3
0
        public static IWebElement GetSelectElement(IWebDriver driver, string Tvalue, string Target)
        {
            JWait.WaitForAjaxComplete(driver, 30);
            string sXpath = JXpath.Select(Target, Tvalue);

            return(element = JFind.XPath(driver, sXpath));
        }
Ejemplo n.º 4
0
        public static IWebElement GetDateTimeElement(IWebDriver driver, string Target, string Tvalue, string sType)
        {
            JWait.WaitForAjaxComplete(driver, 30);
            string sXpath = JXpath.DateTimeInput(Target, Tvalue, sType);

            return(element = JFind.XPath(driver, sXpath));
        }
Ejemplo n.º 5
0
        public static IWebElement GetFileInputElement(IWebDriver driver, string Tvalue, string Target)
        {
            JWait.WaitForAjaxComplete(driver, 30);
            string sXpath = JXpath.FileInput(Target, Tvalue);

            return(element = driver.FindElement(By.XPath(sXpath)));
        }