Пример #1
0
 public static TComponent CreateByXPath <TComponent>(this ComponentCreateService repo, string xpath)
     where TComponent : Component => repo.Create <TComponent, FindXPathStrategy>(new FindXPathStrategy(xpath));
Пример #2
0
 public static TComponent CreateByClass <TComponent>(this ComponentCreateService repo, string elementClass)
     where TComponent : Component => repo.Create <TComponent, FindClassNameStrategy>(new FindClassNameStrategy(elementClass));
Пример #3
0
 public static TComponent CreateByAutomationId <TComponent>(this ComponentCreateService repo, string automationId)
     where TComponent : Component => repo.Create <TComponent, FindAutomationIdStrategy>(new FindAutomationIdStrategy(automationId));
Пример #4
0
 public static TComponent CreateByName <TComponent>(this ComponentCreateService repo, string name)
     where TComponent : Component => repo.Create <TComponent, FindNameStrategy>(new FindNameStrategy(name));
Пример #5
0
 public static TComponent CreateByAccessibilityId <TComponent>(this ComponentCreateService repo, string accessibilityId)
     where TComponent : Component => repo.Create <TComponent, FindAccessibilityIdStrategy>(new FindAccessibilityIdStrategy(accessibilityId));
Пример #6
0
 public static TComponent CreateById <TComponent>(this ComponentCreateService repo, string id)
     where TComponent : Component => repo.Create <TComponent, FindIdStrategy>(new FindIdStrategy(id));
Пример #7
0
 public static TComponent CreateByTag <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => repo.Create <TComponent, FindTagNameStrategy>(new FindTagNameStrategy(tag));
Пример #8
0
 public static TComponent CreateByIdEndingWith <TComponent>(this ComponentCreateService repo, string tag)
     where TComponent : Component => repo.Create <TComponent, FindIdEndingWithStrategy>(new FindIdEndingWithStrategy(tag));