none
Read All Wpf DataGrid Cell Values using Coded UI Test (VS12) RRS feed

  • Question

  • Hi,

    Simple way how to read Wpf DataGrid Cell Values using Coded UI test (VS12)

                List<String> cellList = new List<string>();
                WpfRow list = new WpfRow(UIMap.UIDataGridSampleWindow);
                foreach (WpfRow l in list.FindMatchingControls())
                {
                    WpfCell cell = new WpfCell(l);
                    foreach (WpfCell p in cell.FindMatchingControls())
                    {
                        cellList.Add(p.FriendlyName);
                    }
                }


    • Edited by TimoKuisma Monday, June 10, 2013 5:31 PM
    Monday, June 10, 2013 5:29 PM