Scripts
    Preparing search index...

    Class Elements

    Index

    Properties

    invisibleElementsEnabled: boolean

    Sets whether searching of invisible elements are enabled.

    searchContextMode: SearchContextMode

    Sets the context in which elements are searched. Default is GLOBAL

    Methods

    • Finds elements with specified systemName.

      Parameters

      • systemName: string

        System name of element.

      Returns DocumentElement[]

      Elements with matching system name.

    • Finds all elements in the container that have specified tag.

      Parameters

      • tag: Tag

        Searched tag.

      Returns DocumentElement[]

      Array of elements.

    • Finds all elements in the container that have tag with specified name.

      Parameters

      • tagName: string

        Name of the tag.

      Returns DocumentElement[]

      Array of elements.

    • Finds all elements in the container that have all tags with specified names.

      Parameters

      • tagNames: string[]

        Names of the tags.

      Returns DocumentElement[]

      Array of elements.

    • Finds all elements in the container that have all specified tags.

      Parameters

      • tags: Tag[]

        Searched tags.

      Returns DocumentElement[]

      Array of elements.

    • Returns specified context element used for reducing the scope of area where elements are searched.

      Returns DocumentElementContainer

      Element used as a context for reducing search scope, or null if not set.

    • Finds first element in the container that have specified id. Error is thrown if no element is found.

      Parameters

      • id: string

        element id

      Returns DocumentElement

      Element with matching tag.

    • Finds first element in the container that have specified id. Null is returned if no element is found.

      Parameters

      • id: string

        element id

      Returns DocumentElement

      Element with matching tag.

    • Finds first element with specified systemName. Error is thrown if no element is found. Error is thrown if no element is found.

      Parameters

      • systemName: string

        System name of element.

      Returns DocumentElement

      Element with matching system name.

    • Finds first element with specified systemName. Error is thrown if no element is found. Error is thrown if no element is found.

      Parameters

      • systemName: string

        System name of element.

      Returns DocumentElement

      Element with matching system name.

    • Finds first element in the container that have specified tag. Error is thrown if no element is found.

      Parameters

      • tag: Tag

        Searched tag.

      Returns DocumentElement

      Element with matching tag.

    • Finds first element in the container that have tag with specified name. Error is thrown if no element is found.

      Parameters

      • tagName: string

        Name of the tag.

      Returns DocumentElement

      Element with matching tag name.

    • Finds first element in the container that have tag with specified name. Null is returned if no element is found.

      Parameters

      • tagName: string

        Name of the tag.

      Returns DocumentElement

      Element with matching tag name.

    • Finds first element in the container that have all tags with specified names. Error is thrown if no element is found.

      Parameters

      • tagNames: string[]

        Names of the tags.

      Returns DocumentElement

      Element with matching system name.

    • Finds first element in the container that have specified tag. Null is returned if no element is found.

      Parameters

      • tag: Tag

        Searched tag.

      Returns DocumentElement

      Element with matching tag.

    • Finds first element in the container that have all specified tags. Error is thrown if no element is found.

      Parameters

      • tags: Tag[]

        Searched tags.

      Returns DocumentElement

      Element with matching tags.

    • Sets context element used for reducing the scope of area where elements are searched.

      Parameters

      Returns void