Forum Discussion

reshma's avatar
reshma
Occasional Contributor
10 years ago
Solved

Test complete is not capturing the customized properties?

In our web application, developer has added 'auto-id' property for all the objects to make our tasks easier to identify the objects by unique id. We can able to see this property in Firebug of FF....
  • HKosova's avatar
    HKosova
    10 years ago

    Object Browser shows only the standard HTML and DOM properties and attributes. Custom attributes are accessible via the getAttribute and setAttribute methods.

    But since custom attributes are included in outerHTML, you can map objects by partial outerHTML. For example, if you have this link:

    <a auto-id="my-link" href="http://example.com">Click me!</a>

    you can map it as follows:

    ObjectType: Link
    outerHTML: *auto-id="my-link"*

     

    Asterisks (*) around the value mean "any string" before and after the value.