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