In the Squish for Web edition, why do my object names look different?

Last edited on

Squish for Web uses two distinct naming schemes

One naming scheme is hierarchical names, for example:

DOCUMENT.HTML1.BODY1.FORM1.DIV6.DIV1.DIV1.TABLE1.TBODY1.TR1.TD1.DIV1.DIV
1.TABLE1.TBODY1.TR1.TD2

The other scheme is based on multi-property names, for example:

{id='input_person_last_name' name='person_last_name' tagName='INPUT' type='text'}

Only some known HTML types will generate multi-property (“real”) names: form elements, links, clickable images, and similar. Everything else gets a hierarchical name based on its DOM path.

You can change a DOM name to a multi-property name if you want, but you must do this by hand. If you do this you must use the tagName property, or else the object map lookup won’t work.