We are currently setting up some tests with Microsofts UI Automation.
For my next steps I'm searching for a way to implement selection for GridView rows.
So far I couldn't really find any documentations how to deal with this with Telerik controls in detail.
Currently I access the grid, grid row and grid row cells as follows:
AutomationElement radGridView = Element.TryFindId (OrderConstants.ORDER_GRID_ID);AutomationElementCollection orderRowElements = radGridView.FindAll ( TreeScope.Descendants, new PropertyCondition (AutomationElement.ClassNameProperty, "GridViewRow"));int rowId = 0;foreach (AutomationElement orderRowElement in orderRowElements){ ((SelectionItemPattern) orderRowElement.GetCurrentPattern(SelectionItemPattern.Pattern)).Select() // Is Not Supported Pattern AutomationElement elem = orderRowElement.TryFindId ($"Cell_{rowId++}_0"); ((SelectionItemPattern) elem.GetCurrentPattern(SelectionItemPattern.Pattern)).Select() // Is Not Supported Pattern}
How can I select
- a single row
- multiple rows
- search within the grid (because it looks like rows are not available before they are processed by virtualization of the grid)
How is the RadGridView intended to be used in a automated way?
Currently I'm using .Net Framework 4 with Telerik Version 2018.3
Any help is appreciated, thanks.
