Пример #1
0
 public CheckboxLocator(Enum identifier, Fragment parent) : base(identifier, parent)
 {
 }
Пример #2
0
 public TextLocator(Enum identifier, Fragment parent) : base(identifier, parent)
 {
 }
Пример #3
0
 public RadioLocator(Enum identifier, Fragment parent)
     : base(identifier, parent)
 {
 }
Пример #4
0
 protected Fragment(Enum identifier, Fragment parent = null)
     : base(identifier, parent)
 {
     Children = new Dictionary <Enum, Locator>();
     Populate();
 }
Пример #5
0
 /// <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()));
 }
Пример #6
0
 protected Locator(Enum identifier, Fragment parent = null)
 {
     Identifier = identifier;
     Parent     = parent;
 }