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

NameTypeUseDefaultDescription
file_namestringoptional 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_One_installdir>\dat\Extensibility\Web\Toolkits\<Toolkit name> folder.

functionstringoptional The name of the implementation function.
typestringoptionaljavascriptThe 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>