public void SetDisplayValue(string propertyName) { Trace.WriteLine(String.Format("Setting display attribute ID to '{0}'", propertyName)); var popup = new SelectPropertyModalPopup(); popup.SelectProperty(propertyName, BtnDisplayId); BtnOk.Click(); }