Issue related to number of child count
I am trying to get total child count under the DataPanel grid and it always returns 1 even though count is more than 1. Also note that the Datagrid children have same identification properties.
Please find the attached file for Parent child relationship.
Here is my code. .....................................................................................................................................................................
Approach1: var datagrid = session.FindElementByAccessibilityId("dataPresenter"); var rowCount = datagrid.FindElementsByXPath("/").Count;
rowCount always returns 1. I was expected 2.
Approach2: var datagrid = session.FindElementByAccessibilityId("dataPresenter"); var rowCount = datagrid.FindElementsName("ChildName").Count; Please note all children are having same identification properties. rowCount always returns 1. I was expected 2. ......................................................................................................................................................................

Try using the XPath "/*". I think the astericks is XPath notation for "everything".
Which version of win app driver are you using
@PandaMagnus Thanks for the update! I have already tried with "/*" with no luck. @anunay1 I am using latest one.
