private void GetExplorerTree() { try { _explorerTree = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Z91e998e0ee8c4f069cdab9d2cd3f544e", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_ExplorerTree_AutoID"); } catch (UITestControlNotFoundException) //_explorerTree = VisualTreeWalker.GetControlFromRoot(0, false, 0, "Uia.SplitPane", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "Navigation"); //if(_explorerTree == null) { _explorerTree = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Zc30a7af8e0c54bb5bccfbea116f8ab0d", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_ExplorerTree_AutoID"); //_explorerTree = VisualTreeWalker.GetControlFromRoot(0, false, 1, "Uia.SplitPane", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "Navigation"); } }
public DocManagerUIMap() { _dockManager = VisualTreeWalker.GetControl("UI_DocManager_AutoID"); }
public ExplorerUIMap() { //Ashley: Ideally these should have no dynamic IDs: GetExplorerTree(); try { _explorerSearch = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Z91e998e0ee8c4f069cdab9d2cd3f544e", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_DatalistFilterTextBox_AutoID", "UI_TextBox_AutoID"); } catch (UITestControlNotFoundException) //_explorerSearch = VisualTreeWalker.GetControlFromRoot(0, false, 0, "Uia.SplitPane", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "FilterTextBox", "UI_DataListSearchtxt_AutoID"); //if(_explorerSearch == null) { _explorerSearch = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Zc30a7af8e0c54bb5bccfbea116f8ab0d", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_DatalistFilterTextBox_AutoID", "UI_TextBox_AutoID"); // _explorerSearch = VisualTreeWalker.GetControlFromRoot(0, false, 1, "Uia.SplitPane", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "FilterTextBox", "UI_DataListSearchtxt_AutoID"); } try { _explorerNewConnectionControl = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Z91e998e0ee8c4f069cdab9d2cd3f544e", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "ConnectUserControl"); } catch (UITestControlNotFoundException) //_explorerNewConnectionControl = VisualTreeWalker.GetControlFromRoot(0, false, 0, "Uia.SplitPane", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Explorer", "ConnectUserControl"); //if(_explorerNewConnectionControl == null) { _explorerNewConnectionControl = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Zc30a7af8e0c54bb5bccfbea116f8ab0d", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "ConnectUserControl"); //_explorerNewConnectionControl = VisualTreeWalker.GetControlFromRoot(0, false, 1, "Uia.SplitPane", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Explorer", "ConnectUserControl"); } try { _explorerRefresh = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Z91e998e0ee8c4f069cdab9d2cd3f544e", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_SourceServerRefreshbtn_AutoID"); } catch (UITestControlNotFoundException) //_explorerRefresh = VisualTreeWalker.GetControlFromRoot(0, false, 0, "Uia.SplitPane", "Z306a8df47193448e9dd2228d905d49cd", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "UI_SourceServerRefreshbtn_AutoID"); //if(_explorerRefresh == null) { _explorerRefresh = VisualTreeWalker.GetControl( "UI_DocManager_AutoID", "Zc30a7af8e0c54bb5bccfbea116f8ab0d", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Uia.ExplorerView", "UI_NavigationViewUserControl_AutoID", "UI_SourceServerRefreshbtn_AutoID"); //_explorerRefresh = VisualTreeWalker.GetControlFromRoot(0, false, 1, "Uia.SplitPane", "Zf1166e575b5d43bb89f15f346eccb7b1", "Z3d0e8544bdbd4fbc8b0369ecfce4e928", "Explorer", "UI_ExplorerPane_AutoID", "Explorer", "TheNavigationView", "UI_SourceServerRefreshbtn_AutoID"); } }