Forum Discussion
leahey
15 years agoOccasional Contributor
Hey Robert and Robert, just to confuse things, I'll jump in here...
Robert (Martin) I believe that Robert is using the DevEx VCL controls (Delphi) rather than the .net control (which are prefixed with "Xtra").
It's been a while since I automated a VCL/DevEx app, but as I recall, you have to actually activate the editor (an internal visible object that doesn't exist until you're editing the value of the control) in order to automate some of those properties.
Try this: record a script against the UI in question, interacting with the editor in some ways... click on it, type in it, etc. Then compare the generated script with what you see in the TestComplete object browser for the UI when you're not interacting with it. I'll bet you'll see references in the script to an object that doesn't exist in the browser. That'll be the dynamically created editor object that you'll want to interact with.
Robert (Martin) I believe that Robert is using the DevEx VCL controls (Delphi) rather than the .net control (which are prefixed with "Xtra").
It's been a while since I automated a VCL/DevEx app, but as I recall, you have to actually activate the editor (an internal visible object that doesn't exist until you're editing the value of the control) in order to automate some of those properties.
Try this: record a script against the UI in question, interacting with the editor in some ways... click on it, type in it, etc. Then compare the generated script with what you see in the TestComplete object browser for the UI when you're not interacting with it. I'll bet you'll see references in the script to an object that doesn't exist in the browser. That'll be the dynamically created editor object that you'll want to interact with.