FindChildFrame - web automation method

Searches inside a web automation Frame object, a direct child frame or iframe that verifies a list of Search Conditions.

Applies to:
Frame
  var f = frame.FindChildFrame(Search conditions);
Arguments:
This method accepts a variable number of Search Condition arguments. If no search condition is provided, then the first frame in the container is returned. Any HTML frame or iframe attribute is accepted in search conditions. A special zero-based index attribute is allowed in search condition specifying the ordinal position in the collection of objects generated by the remaining search conditions.
Remarks:
The method returns a Frame web automation object that matches the search condition arguments and provides programmatic control over the underlying IHTMLWindow2 native object exposed by IE browser. If no frame verifies the search conditions, then null is returned.
In case of an error the method throws a script exception and the lastError property of the core object is set as follows:
The time allocated for search is specified by the searchTimeout property. The search is affected by useRegExp property. If loadTimeout is not zero, then the method waits the browser objects to be completely loaded in the amount of time specified by the property. If the timeout has expired the lastError property is set to LOAD_TIMEOUT_ERROR. In this case, if loadTimeoutIsError property is true, then a script exception is thrown.

The method searches only the direct children frames of the container frame.
Example:

None.
		
See also:
Frame | FindFrame | loadTimeout | searchTimeout | useRegExp

© 2014 CodeCentrix Software. All rights reserved.