/// <summary> /// Selects calendar items in hierarchical selector. /// </summary> /// <param name="itemName">Name of the item.</param> public void SelectCalendarInHierarchicalSelector(params string[] calendarNames) { HtmlDiv activeTab = this.EM.Selectors.SelectorsScreen.ActiveTab; activeTab.AssertIsPresent("active tab"); foreach (var calendarName in calendarNames) { this.SelectCalendarInTree(calendarName, activeTab); } }
/// <summary> /// Selects items in hierarchical selector. /// </summary> /// <param name="itemName">Name of the item.</param> public void SelectItemsInHierarchicalSelector(params string[] itemNames) { HtmlDiv activeTab = this.EM.Selectors.SelectorsScreen.ActiveTab; activeTab.AssertIsPresent("active tab"); foreach (var itemName in itemNames) { this.SelectElementInTree(itemName, activeTab); } }
/// <summary> /// Changes the document button. /// </summary> public void IsMessageAppear(bool isVisble) { ActiveBrowser.RefreshDomTree(); HtmlDiv elementIsVisible = ActiveBrowser.Find.ByExpression <HtmlDiv>("tagName=div", "class=" + "", "ng-show=!sfMedia && mediaItemDeleted"); HtmlDiv elementIsNotVisible = ActiveBrowser.Find.ByExpression <HtmlDiv>("tagName=div", "class=ng-hide", "ng-show=!sfMedia && mediaItemDeleted"); HtmlDiv elementIsPressent = ActiveBrowser.Find.ByExpression <HtmlDiv>("tagName=div", "ng-show=!sfMedia && mediaItemDeleted"); if (isVisble) { elementIsPressent.AssertIsPresent("Element is not visible"); } else { Assert.IsNotNull(elementIsNotVisible, "Element is not visible"); Assert.IsNull(elementIsVisible, "Element is visible"); } }