Forum Discussion

eddata's avatar
eddata
Occasional Contributor
14 years ago

Reading text from delphi objetcs

Hello everyone!

we're evaluating TestComplete with our applications (Delphi 5 and Delphi XE).

We have the trial version installed:

How do we read text from buttons, text fields etc.?

Is this functionality part of the "Standard" Version or we need the "Enterprise"?

6 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    You should be able to read them out by referencing the Caption property of the object.
  • eddata's avatar
    eddata
    Occasional Contributor
    Thanks, yes I can now see sometimes the 'Caption' or 'wText' property from some

    'Delphi XE/VCL' components.

    But on 'Delphi 5' and some other XE apps I can't see anything: any suggestion?

    What do you do when it's not recognized?


  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Delphi 5 is not supported in the recent versions of TestComplete as an "Open" application so there are a number of properties and such that you will not see.  I'm not sure about your "other" XE applications.  Are they XE or XE2?



    You can find the list of supported applications at http://support.smartbear.com/viewarticle/12983/
  • eddata's avatar
    eddata
    Occasional Contributor
    Thanks, they're XE2: most of the objects texts are recognized correctly.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    XE2, as far as I know, is not supported so I'm not surprised you're running into some problems.  I believe that's scheduled for TC 9 but, not being a SmartBear employee, I couldn't tell you for sure.
  • Hi,



    If you face problems with certain control types (e.g., buttons or text fields), try adding their classes to the appropriate Object Mapping groups. Some standard properties such as wText may be unavailable because your control is not recognized by its type, but it actually can work as a standard Win32 control.



    Also, enabling MSAA can help you to get text from controls if other means don't help.