Modify operation during recording
When recording tests for VCL Delphi applications any clicks to TreeViews (and other controls) are registered using the caption of the clicked item. In our application we have dynamic captions for these controls but all items have stable internal IDs. I'd like to use these IDs during recording and playback of the tests. We have sub-classed these controls thus accessing internal details of these controls should be possible.
I already tried to implement a KDTOperation using a script extension. Unfortunately this does not help, as all the code is only executed after finishing the recording. At that time access to internal information of the controls is no longer possible.
Thus, what I want is, that the standard recording of a TreeView click (i.e. myTV.ClickItem('|item1|item1.2')) would be recorded as something like myTV.ClickItem('MyItemID'). During playback of the test, this recorded ID should be used instead of the caption.
Searching the forums and your documentation did not reveal any hints on how to solve my problem. Could you please give my any clues?