If I view a Table object (Infragistics) with UI Spy, it lists the rows as expected. However, when I use the Treewalker and navigate down to the Table object, the rows do not exist where they do in the UI Spy.
If I use the parent windows AutomationElement and use the Findfirst() method using the NameProperty as a condition, the findfirst method never returns. It doesn't crash or return null either, it just runs indefinitely. (I let it sit there overnight once.)
Here's the odd thing: If the application is NOT the foreground application, the TreeWalker CAN navigate to the row(s) and work with them as expected. And FindFirst can too. Anyone have any ideas?
Here's my code - seems pretty simple:
AutomationElement LTGrid = TW.GetFirstChild(AUTWindow); // Gets Table element
LTGrid = TW.GetFirstChild(LTGrid); // Should get first row of Table (does not)
If I use the parent windows AutomationElement and use the Findfirst() method using the NameProperty as a condition, the findfirst method never returns. It doesn't crash or return null either, it just runs indefinitely. (I let it sit there overnight once.)
Here's the odd thing: If the application is NOT the foreground application, the TreeWalker CAN navigate to the row(s) and work with them as expected. And FindFirst can too. Anyone have any ideas?
Here's my code - seems pretty simple:
AutomationElement LTGrid = TW.GetFirstChild(AUTWindow); // Gets Table element
LTGrid = TW.GetFirstChild(LTGrid); // Should get first row of Table (does not)