Exemple #1
0
 public static GuiTabItem GetTabByName(AutomationElement parentWindow, string name)
 {
     if (_cachedTab == null || _cachedTab.AutomationId != name) {
         var res = parentWindow.FindChildByControlTypeAndName(ControlType.TabItem, name);
         _cachedTab = new GuiTabItem(res, name);
         _currentParentWindow = parentWindow;
     }
     return _cachedTab;
 }
Exemple #2
0
 public override void GetThisWindow()
 {
     _cachedTab = GetTabByAutomationId(_currentParentWindow, AutomationId);
 }
Exemple #3
0
 public static void InvalidateCache()
 {
     _cachedTab = null;
 }