public CheckboxLocator(Enum identifier, Fragment parent) : base(identifier, parent) { }
public TextLocator(Enum identifier, Fragment parent) : base(identifier, parent) { }
public RadioLocator(Enum identifier, Fragment parent) : base(identifier, parent) { }
protected Fragment(Enum identifier, Fragment parent = null) : base(identifier, parent) { Children = new Dictionary <Enum, Locator>(); Populate(); }
/// <summary> /// Get the Enum that identify the fragment. In another words, each fragment type shall contain at least one /// Enum entry whose IsFragment() == true. /// </summary> /// <param name="fragment">Instance of the specific Fragment type.</param> /// <returns>The first Enum whose IsFragment() is "true".</returns> public static Enum GetFragmentId(Fragment fragment) { return(GetNestedElementIds(fragment.GetType()).FirstOrDefault(x => x.IsFragment())); }
protected Locator(Enum identifier, Fragment parent = null) { Identifier = identifier; Parent = parent; }