I have a scenario like this..
I have a table with 3 Columns as Name,Age,Location.
I need to verify whether a name exists with in the name column or not.
The above code is working fine.
But my problem is assume that in nexr build the Ui get changed i.e. Age becomes the Column 1,Name becomes Column 2 & Location becomes Column 3.
Then the above code will not work.
So I want my column name to be dynamic.
Pls help in solving this ASAP.
If you want to access the table UI from another app, (perhaps for test automation), it would be interesting to run the Inspect tool that comes with the Windows SDK, and point that to your UI. Inspect shows the accessible data being exposed by UI, and so the data it reports may change as the columns are rearranged. The Inspect SDK tool uses the native-code UI Automation (UIA) API that comes with Windows, so whatever Inspect can access from the app showing the table, can also be accessed by your own UIA client app if you use the same API.