A web page markup can contain a large number of nested elements. For simplicity, the Tree model does not include some elements in the hierarchy. 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 Tree object model 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
Testing Web Applications
About Web Object Identification and Object Models
Web Object Types Used by the Tree Model and Hybrid Mobile Applications
DOM Model
Tag Model
Hybrid Model
Accessing DOM document Object