/// <summary>
 /// Create a new filter field -- required param is propertyname, rest are optional.
 /// </summary>
 public void CreateNewFilterOnlyField(string propertyName, string displayText = "", string order = "1")
 {
     Trace.WriteLine(String.Format("Creating a new display field with property '{0}'", propertyName));
     var parentTitle = Title;
     BtnNewFilterField.Click();
     var popup = new EntityChooserFieldPopup();
     PopUpWindow.SwitchTo(popup.Title);
     popup.SelectProperty(propertyName);
     popup.TxtOrder.Value = order;
     popup.BtnOk.Click();
     PopUpWindow.SwitchTo(parentTitle);
 }
예제 #2
0
        /// <summary>
        /// Create a new filter field -- required param is propertyname, rest are optional.
        /// </summary>
        public void CreateNewFilterOnlyField(string propertyName, string displayText = "", string order = "1")
        {
            Trace.WriteLine(String.Format("Creating a new display field with property '{0}'", propertyName));
            var parentTitle = Title;

            BtnNewFilterField.Click();
            var popup = new EntityChooserFieldPopup();

            PopUpWindow.SwitchTo(popup.Title);
            popup.SelectProperty(propertyName);
            popup.TxtOrder.Value = order;
            popup.BtnOk.Click();
            PopUpWindow.SwitchTo(parentTitle);
        }