Is it possible to select a item in the repository based on an attribute of the child element? For example to select the element of the 'dataGroup' container item which is the parent of the Text item with the Caption "Thumbnails" (see below)

- RepoImg.PNG (17.84 KiB) Viewed 771 times
I tried:
Code: Select all
toolbar[@id='buttonBarViewMode']//text[@caption='Thumbnail']/../../../element
which gave me back an element, but the wrong one (=always the same, no matter what caption is set to)
Code: Select all
toolbar[@id='buttonBarViewMode']//element/..//text[@caption='Thumbnail']
which gave me back the text element (child)
Thanks!
P.S.: I do know how to solve it in C# and sure, I could use the different element names - but that's not the point.