public AutomationElement GetParent(AutomationElement element, ICacheRequest cacheRequest = null) { var parent = cacheRequest == null? NativeTreeWalker.GetParent(element.ToNative()) : NativeTreeWalker.GetParent(element.ToNative(), cacheRequest.ToNative()); return(Automation.WrapNativeElement(parent)); }
public AutomationElement GetPreviousSibling(AutomationElement element, ICacheRequest cacheRequest = null) { var child = cacheRequest == null? NativeTreeWalker.GetPreviousSibling(element.ToNative()) : NativeTreeWalker.GetPreviousSibling(element.ToNative(), cacheRequest.ToNative()); return(Automation.WrapNativeElement(child)); }
public AutomationElement GetLastChild(AutomationElement element, ICacheRequest cacheRequest = null) { var child = cacheRequest == null? NativeTreeWalker.GetLastChildElement(element.ToNative()) : NativeTreeWalker.GetLastChildElementBuildCache(element.ToNative(), cacheRequest.ToNative()); return(Automation.WrapNativeElement(child)); }