Пример #1
0
 public static ComponentsList <TComponent> CreateAllByXPath <TComponent>(this ComponentCreateService repo, string xpath)
     where TComponent : Component => new ComponentsList <TComponent>(new FindXPathStrategy(xpath), null);
Пример #2
0
 public static ComponentsList <TComponent> CreateAllByClass <TComponent>(this ComponentCreateService repo, string elementClass)
     where TComponent : Component => new ComponentsList <TComponent>(new FindClassNameStrategy(elementClass), null);
Пример #3
0
 public static ComponentsList <TComponent> CreateAllByAutomationId <TComponent>(this ComponentCreateService repo, string automationId)
     where TComponent : Component => new ComponentsList <TComponent>(new FindAutomationIdStrategy(automationId), null);
Пример #4
0
 public static ComponentsList <TComponent> CreateAllByAccessibilityId <TComponent>(this ComponentCreateService repo, string accessibilityId)
     where TComponent : Component => new ComponentsList <TComponent>(new FindAccessibilityIdStrategy(accessibilityId), null);
Пример #5
0
 public static ComponentsList <TComponent> CreateAllByName <TComponent>(this ComponentCreateService repo, string name)
     where TComponent : Component => new ComponentsList <TComponent>(new FindNameStrategy(name), null);
Пример #6
0
 public static ComponentsList <TComponent> CreateAllByTag <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => new ComponentsList <TComponent>(new FindTagNameStrategy(tag), null);
Пример #7
0
 public static ComponentsList <TComponent> CreateAllById <TComponent>(this ComponentCreateService repo, string id)
     where TComponent : Component => new ComponentsList <TComponent>(new FindIdStrategy(id), null);
Пример #8
0
 public static TComponent CreateByXPath <TComponent>(this ComponentCreateService repo, string xpath)
     where TComponent : Component => repo.Create <TComponent, FindXPathStrategy>(new FindXPathStrategy(xpath));
Пример #9
0
 public static ComponentsList <TComponent> CreateAllByIdEndingWith <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => new ComponentsList <TComponent>(new FindIdEndingWithStrategy(tag), null);
Пример #10
0
 public static TComponent CreateByClass <TComponent>(this ComponentCreateService repo, string elementClass)
     where TComponent : Component => repo.Create <TComponent, FindClassNameStrategy>(new FindClassNameStrategy(elementClass));
Пример #11
0
 public static TComponent CreateByAutomationId <TComponent>(this ComponentCreateService repo, string automationId)
     where TComponent : Component => repo.Create <TComponent, FindAutomationIdStrategy>(new FindAutomationIdStrategy(automationId));
Пример #12
0
 public static TComponent CreateByName <TComponent>(this ComponentCreateService repo, string name)
     where TComponent : Component => repo.Create <TComponent, FindNameStrategy>(new FindNameStrategy(name));
Пример #13
0
 public static TComponent CreateByAccessibilityId <TComponent>(this ComponentCreateService repo, string accessibilityId)
     where TComponent : Component => repo.Create <TComponent, FindAccessibilityIdStrategy>(new FindAccessibilityIdStrategy(accessibilityId));
Пример #14
0
 public static TComponent CreateById <TComponent>(this ComponentCreateService repo, string id)
     where TComponent : Component => repo.Create <TComponent, FindIdStrategy>(new FindIdStrategy(id));
Пример #15
0
 public static TComponent CreateByTag <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => repo.Create <TComponent, FindTagNameStrategy>(new FindTagNameStrategy(tag));
Пример #16
0
 public static TComponent CreateByIdEndingWith <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => repo.Create <TComponent, FindIdEndingWithStrategy>(new FindIdEndingWithStrategy(tag));