File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -109,19 +109,18 @@ private class FilesTab
109109 public FilesTab ( AutomationElement Files )
110110 {
111111 // Find window content to reduce the scope
112- AutomationElement _windowContent = Files . FindFirstChild ( cf => cf . ByClassName ( "Microsoft.UI.Content.DesktopChildSiteBridge" ) ) ;
112+ var _windowContent = Files . FindFirstChild ( cf => cf . ByClassName ( "Microsoft.UI.Content.DesktopChildSiteBridge" ) ) ;
113+ var _paneContent = _windowContent . FindFirstChild ( cf => cf . ByClassName ( "InputSiteWindowClass" ) ) ;
113114
114- _currentPathGet ??= _windowContent . FindFirstChild ( cf => cf . ByAutomationId ( "CurrentPathGet" ) ) ? . AsTextBox ( ) ;
115+ _currentPathGet ??= _paneContent . FindFirstChild ( cf => cf . ByAutomationId ( "CurrentPathGet" ) ) ? . AsTextBox ( ) ;
115116 if ( _currentPathGet == null )
116117 {
117- // TODO: Fix issue here
118118 Context . API . LogError ( ClassName , "Failed to find CurrentPathGet" ) ;
119119 }
120120
121- _currentPathSet ??= _windowContent . FindFirstChild ( cf => cf . ByAutomationId ( "CurrentPathSet" ) ) ? . AsTextBox ( ) ;
121+ _currentPathSet ??= _paneContent . FindFirstChild ( cf => cf . ByAutomationId ( "CurrentPathSet" ) ) ? . AsTextBox ( ) ;
122122 if ( _currentPathSet == null )
123123 {
124- // TODO: Fix issue here
125124 Context . API . LogError ( ClassName , "Failed to find CurrentPathSet" ) ;
126125 }
127126 }
You can’t perform that action at this time.
0 commit comments