public void EditProperties(String viewName) { Trace.WriteLine("Editing State Properties."); BtnEditProperties.Click(); var popup = new EditStateProperties(); popup.SwitchTo(); popup.SelProjectStateView.SelectOption(viewName); popup.BtnOk.Click(); popup.SwitchBackToParent(); }