예제 #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));