A web page markup can contain a large number of nested elements. For simplicity, the object hierarchy that TestComplete generates does not include some elements. For example, it does not include intermediate container elements that do not have any text content.
The following lists describe how web objects are filtered in the Object Browser:
Included
-
The following elements, always:
A
BUTTON
CAPTION
DIV
EMBEDFIELDSET
FORM
IFRAME
IMG
LABELLEGEND
MARQUEE
OBJECT
SELECT
TABLETD
TH
TEXTAREA -
Custom elements implemented with Web Components technologies.
-
Other elements, only if they have any of the following:
-
text contents (in the element, not in its child elements)
-
a
role
other than presentation
Note: If the Use legacy web testing features project option is enabled, SPAN elements with no text contents of their own are not included in the object hierarchy regardless of their role
attribute. -
Not Included
-
Child OPTION elements of SELECT elements
-
Hidden INPUT fields:
<input type="hidden">
-
SCRIPT, STYLE elements and comments
The web object structure in Name Mapping matches the object structure in the Object Browser. However, if the objects are mapped while the Use extended find when possible option is enabled, Name Mapping does not include web page layout containers, such as DIVs and TABLEs, which are not used for identification of tested web objects.
See Also
Classic Web Testing
Understanding Web Object Identification and Object Models
Web Object Types Used by Web and Hybrid Mobile Applications
Accessing DOM document Object