Web Object Types Used by Web and Hybrid Mobile Applications

Applies to TestComplete 15.63, last modified on April 10, 2024

When exposing internals of web and hybrid mobile applications, TestComplete uses object types and indexes to name web page elements in the Object Browser or Object Spy. Using object types conceals web page implementation details and makes the naming scheme simpler and more transparent.

The following list describes which types correspond to tags on a web page (in alphabetical order).

Important Notes
  • For HTML5: New HTML5 INPUT types (number, search, e-mail and so on) are identified as the corresponding test objects (NumberInput, SearchBox, EmailInput and so on) only if these INPUT types are supported by the web browser. Otherwise, they are identified as generic TextBox objects.

    To check if a browser supports a specific INPUT type, examine the element’s type and outerHTML property values in the Object Browser or Object Spy. If the type value is the same as in the outerHTML string, then the browser supports the INPUT type. Otherwise, the browser does not support it and renders it as a generic text input.

    HTML5 support for hybrid mobile applications is limited. To find out which HTML5 object you can access from your tests, see the HTML5 Support in Hybrid Mobile Applications (Legacy) topic.

  • For Web Components: Custom elements are identified according to the name under which they are registered in your web application. It can be either their tag name (for autonomous elements) or the value of the is attribute (for customized built-in elements). See Support for Custom Elements.

Types

Applet

This type is used for the APPLET elements.

Area

This type is used for the AREA elements.

TestComplete supports testing image maps that use AREA elements. It recognizes AREA elements as child objects of the Image object.

Two notes:

  • If several images use the same map, the corresponding Image objects will have the same Area child objects.
  • If the AREA element’s TITLE attribute value exceeds 32 characters (including spaces), the title property of the corresponding Area object returns only first 32 characters.

Article

This type is used for HTML5 ARTICLE elements.

Aside

This type is used for HTML5 ASIDE elements.

Audio

This type is used for HTML5 AUDIO elements.

Button

This type is used for BUTTON elements and <INPUT TYPE="BUTTON"> elements.

Canvas

This type is used for HTML5 CANVAS elements.

Caption

This type is used for CAPTION elements and HTML5 FIGCAPTION elements.

Cell

This type is used for the TD and TH elements.

CheckBox

This type is used for <INPUT TYPE="CHECKBOX"> elements.

ColorBox

This type is used for HTML5 <INPUT TYPE="COLOR"> elements.

DateInput

This type is used for HTML5 <INPUT TYPE="DATE"> elements.

DateTimeInput

This type is used for HTML5 <INPUT TYPE="DATETIME"> elements.

Details

This type is used for HTML5 DETAILS elements.

EmailInput

This type is used for HTML5 <INPUT TYPE="EMAIL"> elements.

Figure

This type is used for HTML5 FIGURE elements.

File

This type is used for <INPUT TYPE="FILE"> elements.

Fieldset

This type is used for the FIELDSET elements.

Footer

This type is used for HTML5 FOOTER elements.

Form

This type is used for the FORM elements.

Frame

This type is used for the FRAME and IFRAME elements. For Electron-based web applications, TestComplete recognizes WebView controls as Frame objects.

Header

This type is used for HTML5 HEADER elements.

HGroup

This type is used for HTML5 HGROUP elements.

Image

This type is used for the IMG elements.

ImageButton

This type is used for <INPUT TYPE="IMAGE"> elements.

Label

This type is used for the LABEL elements.

Legend

This type is used for the LEGEND elements.

Link

This type is used for the A elements.

Marquee

This type is used for the MARQUEE elements.

Math

This type is used for the MathML MATH elements.

Meter

This type is used for HTML5 METER elements.

MonthInput

This type is used for HTML5 <INPUT TYPE="MONTH">.

Nav

This type is used for HTML5 NAV elements.

NumberInput

This type is used for HTML5 <INPUT TYPE="NUMBER">.

Object

This type is used for the EMBED and OBJECT elements.

Output

This type is used for HTML5 OUTPUT elements.

Panel

This type is used for the DIV elements.

PasswordBox

This type is used for <INPUT TYPE="PASSWORD"> elements.

PhoneInput

This type is used for HTML5 <INPUT TYPE="TEL">.

Progress

This type is used for HTML5 PROGRESS elements.

RadioButton

This type is used for <INPUT TYPE="RADIO"> elements.

ResetButton

This type is used for <INPUT TYPE="RESET"> elements.

SearchBox

This type is used for HTML5 <INPUT TYPE="SEARCH"> elements.

Section

This type is used for HTML5 SECTION elements.

Select

This type is used for the SELECT elements.

Slider

This type is used for HTML5 <INPUT TYPE="RANGE"> elements.

SubmitButton

This type is used for <INPUT TYPE="SUBMIT"> elements.

Summary

This type is used for HTML5 SUMMARY elements.

SVG

This type is used for SVG elements.

Table

This type is used for the TABLE elements.

Textarea

This type is used for the TEXTAREA elements.

Textbox

This type is used for <INPUT TYPE="TEXT"> elements and for HTML5 input types that are not supported by the web browser.

TextNode

This type is used for elements that have text contents: P, SPAN, LI, OL, H1...H6, BDI and others.

Time

This type is used for HTML5 TIME elements.

TimeInput

This type is used for HTML5 <INPUT TYPE="TIME"> elements.

URLInput

This type is used for HTML5 <INPUT TYPE="URL"> elements.

Video

This type is used for HTML5 VIDEO elements.

WeekInput

This type is used for HTML5 <INPUT TYPE="WEEK"> elements.

See Also

Tree Model
Understanding Web Object Identification and Object Models
Classic Web Testing

Highlight search results