Below are to partial RanoreXPath from a component in our app. One is the way the path is resolved now using Spy the other is the way the Path looks when it was originally recorded. The main issue is that our development team does not assign container values manually. They let Flex autogenerate them. As say VBOXs or HBOX are added to the screen the generated container ids may change. Is there a way to handle this so that the recordings are not broken when this happens. This is a urgent problem for us.
Path as it currently is:
container[@id='modulesCanvas']/element/container[1]/container[@id='adminDetailsTabs']/container[@id='workRulesPane']
/container[@id='_ResWorkDaysAndHolidays_VBox3']/container[@id='_ResWorkDaysAndHolidays_ResCustomHolidaysForm1']/element/text[@id='itemName']
Path when recording was done:
container[@id='modulesCanvas']/element/container[1]/container[@id='adminDetailsTabs']/container[@id='workRulesPane']
/container[@id='_ResWorkDaysAndHolidays_VBox4']/container[@id='workRulesHolidayForm']/container[@id='_ResCustomHolidaysForm_HBox2']/text[@id='itemName']