Getting full contents of a Datagrid using UIAutomation

后端 未结 2 1361
星月不相逢
星月不相逢 2021-01-14 13:09

I have need to retrieve all of the items in a Datagrid from an external application using UIAutomation. Currently, I can only retrieve (and view in UISpy) the visible items.

2条回答
  •  野的像风
    2021-01-14 13:48

    You can only retrieve the visible cells because you have table virtualization on.

    Try disabling the virtualization (not always possible in all application but perhaps you want to move it into configuration and change it before testing)

提交回复
热议问题