
I tried to attach Snapshot but couldn't due to size restriction.
Code: Select all
Container dataGrid = form.FindSingle<Container>("/form[@wpfnative='True' and @title='Hubble [DEMO900]' and @processname='Hubble']/container/container/?/?/container[@automationid='dockPanel']/?/?/tabpagelist/container/container[2]/container/element/container/container/container[2]/container[1]/container[@automationid='dataGridControl']/table[@automationid='dataGrid']/container[@automationid='centeringGrid']/container[@automationid='PART_RowsPresenter']", dur);
bool flag = false;
int count = dataGrid.Children.Count;
IList<Unknown> rows = dataGrid.Children;
foreach (Unknown child in rows)
{
Unknown cont = child.Children[0];
Unknown cellsCont = cont.Children[1];
IList<Cell> cellsList = cellsCont.FindChildren<Cell>();
foreach (Cell cell in cellsList)
{
cell.Click();
//string text = cell.Text;
//string text = cell.Element.GetAttributeValueText("AccessibleValue");
//CompressedImage comp = cell.CaptureCompressedImage();
//comp.Store("C:\\Automation\\CompImage.png");
}
}
Thanks.