Esempio n. 1
0
        public string GetSelectedIndex(string selectLocator)
        {
            bool actRes = false; string resStr = "", errStr = "";

            try
            {
                resStr = selenium.GetSelectedIndex(selectLocator);
                actRes = true;
            }
            catch (System.Exception ex)
            {
                errStr = ex.ToString();
            }

            res = new ResultClass()
            {
                Decp = "GetSelectedIndex, " + selectLocator,
                Res  = actRes ? "pass" : "fail",
                Tdev = " ms",
                Err  = errStr,
            };
            BaseListOfResItems.Add(res);

            return(resStr);
        }