Web Add-in Extensibility Developer Guide > Toolkit Configuration Schema > Elements > Controls\ToolkitStateQuery Element

Controls\ToolkitStateQuery Element

Description

The function UFT should call to check whether the toolkit is fully loaded before recording.

Important Information

  • This function enables a Web Add-in Extensibility toolkit to indicate to UFT whether the toolkit it supports is fully loaded on the current Web page.

  • If a function is specified in this element, UFT calls it in some cases during a recording session, and can use it to wait for the toolkit to load fully before calling the Web Add-in Extensibility function developed to register for events.
  • For more information on this Get Toolkit State function, see the Web Add-in Extensibility JavaScript Function Reference.

Attributes

Name Type Use Default Description
file_name string optional   The file system path to the file containing the function. If no path is specified, the default file name defined in the Control\Settings element is used.

You can specify a path relative to the <UFT installation folder>\dat\Extensibility\Web\Toolkits\<Toolkit name> folder.

function string optional   The name of the implementation function.
type string optional javascript The type of implementation function.

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ToolkitStateQuery" minOccurs="0">
    <xs:annotation>
        <xs:documentation>The function UFT should call to check whether the toolkit is fully loaded before recording.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:attributeGroup ref="ImpFuncAttrs" />
    </xs:complexType>
</xs:element>