Is it possible to do this using the Xpath?
I attached a screenshot and a snapshot of the tree.
I can identify for instance the treeitem 'RxZone2' using
Code: Select all
/form[@automationid='MainWindowForm']//container[@automationid='cntRegion1']//tree[@automationid='SystempointsTree']//treeitem/text[@caption='RxZone2']
To get the treeitem under 'SimFire2' I want to use something like
Code: Select all
/form[@automationid='MainWindowForm']//container[@automationid='cntRegion1']//tree[@automationid='SystempointsTree']//treeitem/text[@caption='RxZone2']/parent::treeitem/text[@caption='SimFire2']