/// <summary> /// Selects the option in list template selector. /// </summary> /// <param name="optionValue">The option value.</param> public void SelectOptionInListTemplateSelector(string optionValue) { HtmlSelect selector = this.EM.Widgets.WidgetDesignerContentScreen.ListTemplateSelector .AssertIsPresent("List template selector"); selector.SelectByValue(optionValue); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.click); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change); }
/// <summary> /// Sorts the options selector. /// </summary> /// <param name="optionValue">The option value.</param> public void SelectOptionInSortingSelector(string optionValue) { HtmlSelect selector = this.EM.Widgets.WidgetDesignerContentScreen.SortImagesSelector .AssertIsPresent("sorting selector"); selector.SelectByValue(optionValue); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.click); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change); }
/// <summary> /// Selects the option in default calendar view selector. /// </summary> /// <param name="optionValue">The option value.</param> public void SelectOptionInDefaultCalendarViewSelector(string optionValue) { HtmlSelect selector = this.EM.Widgets.WidgetDesignerCalendarScreen.DefaultViewDropdown .AssertIsPresent("default view selector"); selector.SelectByValue(optionValue); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.click); selector.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change); }
/// <summary> /// Select detail template /// </summary> public void SelectDetailTemplate(string templateName) { HtmlSelect selectDetailTemplate = this.EM.Widgets.WidgetDesignerContentScreen.SelectDetailTemplate .AssertIsPresent("Detail template select"); selectDetailTemplate.Click(); selectDetailTemplate.SelectByValue(templateName); selectDetailTemplate.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.click); selectDetailTemplate.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change); }
/// <summary> /// Selects the sorting option. /// </summary> /// <param name="option">The option.</param> public void SelectSortingOption(string option) { HtmlSelect sortingDropdown = this.EM.Widgets.WidgetDesignerContentScreen.SortingOptionsDropdown .AssertIsPresent("Sorting dropdown"); sortingDropdown.Click(); sortingDropdown.SelectByValue(option); sortingDropdown.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.click); sortingDropdown.AsjQueryControl().InvokejQueryEvent(jQueryControl.jQueryControlEvents.change); }
/// <summary> /// Selects the tags template. /// </summary> /// <param name="template">The template.</param> public void SelectTagsTemplate(TagsTemplates template) { HtmlSelect templateDropdown = this.EM.Classifications.TagsWidgetEditScreen.TagsTemplateDropdown.AssertIsPresent("Tags template dropdown"); templateDropdown.SelectByValue(template.ToString(), true); }