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