public string[] GetAllWindowIds() { bool actRes = false; string errStr = ""; string[] resStrArray = new string[1]; try { resStrArray = selenium.GetAllWindowIds(); actRes = true; } catch (System.Exception ex) { errStr = ex.ToString(); } res = new ResultClass() { Decp = "GetAllWindowIds", Res = actRes ? "pass" : "fail", Tdev = " ms", Err = errStr, }; BaseListOfResItems.Add(res); return(resStrArray); }