Represents the hierarchical item control (a control containing structured hierarchy of controls of TItem
type). Can have parent control of TItem
type. Default search finds the first occurring element.
Inherited from HierarchicalControl.
Syntax
public class HierarchicalItem<TItem, TOwner> : HierarchicalControl<TItem, TOwner>
where TItem : HierarchicalItem<TItem, TOwner>
where TOwner : PageObject<TOwner>
Properties
public DataProvider <bool, TOwner>
HasParent { get; }
Gets the DataProvider<TData, TOwner>
instance for the value indicating whether the control has parent.
Item.HasParent.Should.BeTrue();
public TItem
Parent { get; }
Gets the parent control of TItem
type.
Item.Parent.Name.Should.Equal("Item 1");