I have a grid in a WPF application and I need to extract specific cells, right noe the only way for me to access them is using .../text[#]
My problem is that all the indexes slide a few values to the left or to the right in some cases (text, text, text suddently become text, text, text).
On every row I have a label, to I thought I could use this to find the initial text value of my row, then use an offset for my columns.
So I have a repository item RowLabel = .../text[@name='screen label']
Now I would like to create a repository item Col1 = Path of RowLabel with the Text value incremented by 1, by 2, by 3, etc to access the following cells on that row, is that possible?
Ask general questions here.
2 posts • Page 1 of 1
Never mind, after a lot of googling, I discovered a path element called "following-sibling". After a few experimentation, I came up with a quick and simple solution to map my grid elements using the name of each row in the first column: