Forum Discussion

motorola's avatar
motorola
Contributor
13 years ago

what's the function of nativedelphiobject.name

I see in the namemapping, some objects have nativedelphiobject.name, while others don't. what's the function of this property?
  • Hi,



    Native<X>Object namespaces contain native properties and methods of objects whose names coincide with those added by TC. Page elements have a 'name' property assigned in HTML code, and TC adds the 'Name' property to all objects. To avoid name conflicts, the native 'name' property is moved to the NativeWebObject namespace.
  • What's the purpose of assigning wildcards in this property? let's say a form is given a nativedelphiobject.name frmLogin*. Can you show me where this wildcard in this property be used (in script or any other project components). thanks
  • Hi,



    Wildcards are usually used to ignore some parts of values. For example, when you want to exclude some dynamic parts of these values from recognition.

    As for
    where this wildcard in this property be used
    , this depends on your setup and on whether you need to use wildcards at all. To use them, simply replace the part you need to ignore with *. There's no requirement to use wildcards, they are optional.