Sample Web toolkit configuration file

Copy code
<Controls>
    <!--  Defines the implementation for the WebExtBook test object class. -->
    <Control TestObjectClass="WebExtBook">
        <!-- Indicates the JavaScript file that contains the implementation JavaScript functions. -->        
        <Settings>
            <Variable name="default_imp_file" value="WebExtBook.js" />
        </Settings>
        <!--  Defines how this control is identified. -->         
        <Identification>
            <HTMLTags>
                <Tag name="TABLE" />
            </HTMLTags>
            <Browser name="*">            
                <Conditions type="IdentifyIfPropMatch">
                    <Condition prop_name="className" expected_value="Book" />
                </Conditions>
            </Browser>
        </Identification>
        <Filter>
            <Learn learn_control="Yes" learn_children="No" />
        </Filter>
        <Record>
            <EventListening use_default_event_handling_for_children="false" use_default_event_handling="false" type="javascript" function="ListenToEvents" />
        </Record>
    </Control>
    
    <!--  Defines the implementation for the WebExtUsedBooks test object class. -->
    <Control TestObjectClass="WebExtUsedBooks">
        <Settings>
            <!-- Indicates the JavaScript file that contains the implementation JavaScript functions. -->        
            <Variable name="default_imp_file" value="WebExtUsedBooks.js" />
            <Variable name="func_to_get_base_elem" value="GetTableElem" />
        </Settings>
        <!--  Defines how this control is identified. -->         
        <Identification type="javascript" function="IsWebExtUsedBooks">
            <!-- The IsWebExtUsedBooks function is only called for div elements. -->
            <HTMLTags>
                <Tag name="div" />
            </HTMLTags>
        </Identification>
        <Filter>
            <Learn learn_control="Yes" learn_children="CallFilterFunc" type="javascript" function="GetChildrenToLearn" />
        </Filter>
        <Record>
            <EventListening use_default_event_handling_for_children="false" use_default_event_handling="false" type="javascript" function="ListenToEvents" />
        </Record>
        <Run>
            <Methods>
                <Method name="RowCount" type="javascript" function="BookCount" />
            </Methods>
        </Run>
    </Control>
</Controls>