UI AutomationElementsTree:

Elements outside the current scope:

Currently visible items:

The problem is that I can not interact (select for example) with objects out of sight

************** Exception text ************** System.Windows.Automation.ElementNotEnabledException: The operation is not allowed on a nonenabled element. in MS.Internal.Automation.ElementUtil.Invoke (AutomationPeer peer, DispatcherOperationCallback work, Object arg) in MS.Internal.Automation.SelectionItemProviderWrapper.Select () in MS.Internal.Automation.UiaCoreApi.CheckError (Intr in hr). .Automation.SelectionItemPattern.Select () in AutomationElementsTree.mainWindow.selectionMenu (Object sender, EventArgs e) in System.Windows.Forms.ToolStripItem.RaiseEvent (Object key, EventArgs e) in System.Windows.Forms.ToolStripMeappoing (Project key, EventArgs e) in System.Windows.Forms. e) in System. Windows. Windows.Forms.ToolStripItem.FireEvent (EventArgs e, ToolStripItemEventType met) in System. Windows. .W mMouseUp (Message & m, MouseButtons button, Int32 clicks) in System.Windows.Forms.Control.WndProc (Message & m) in System.Windows.Forms.ScrollableControl.WndProc (Message & m) in System.Windows.Forms.ToolStrip.WndProc ( Message & m) in System.Windows.Forms.ToolStripDropDown.WndProc (Message & m) in System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m) in System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m) in System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • Do you want to open and choose? why it is impossible to reveal? - Senior Pomidor
  • Not understood. Reveal what? The foliage list has items. Items that do not appear on the display are not activated and you cannot interact with them. I need to get info from the whole list - DenisJNewb
  • if the dynamic trivue is filled, then until we open it - it does not exist, therefore, we cannot receive them. How is treeView implemented? - Senior Pomidor
  • And why not first scroll the list to the right place? Then its elements will be created for sure. - VladD
  • No, they are deactivated when out of sight. I just scrolled sketched - DenisJNewb

0