示例#1
0
 public WPathStructure ToWPath(AutomationElement rootElement = null)
 {
     if (cachedWPath == null)
     {
         var automationRoot = rootElement ?? AutomationSingleton.Automation.GetDesktop();
         cachedWPath = wPathBuilder.GetWPathStructure(AutomationElement, automationRoot);
     }
     return(cachedWPath);
 }
示例#2
0
 public static UIElement FromWPath(WPathStructure wPath)
 {
     return(FromWPath(wPath.Value));
 }
示例#3
0
 public UIElement(string wPath)
 {
     cachedWPath = new WPathStructure(wPath);
 }