public void SelectPopUp(string windowID) { bool actRes = false; string errStr = ""; try { selenium.SelectPopUp(windowID); actRes = true; } catch (System.Exception ex) { errStr = ex.ToString(); } res = new ResultClass() { Decp = "SelectPopUp, " + windowID, Res = actRes ? "pass" : "fail", Tdev = " ms", Err = errStr, }; BaseListOfResItems.Add(res); }