Methods Added to Web Test Objects

Applies to TestComplete 14.0, last modified on January 23, 2019

Methods Added to Web Objects When the Tree or Hybrid Model is Active   | View

Standard

This category includes methods that TestComplete applies to all test objects.

Name Description
Wait This method is used by parent objects to wait for child objects.
Extended

This category includes methods that extend test functionality for the objects.

Name Description
EvaluateXPath Searches for all the web objects that have the specified attribute values. The search expression has the XPath syntax.
FindChildByXPath Searches for the first child web object that has the specified attribute values. The search expression has the XPath syntax.
QuerySelector Searches for the first web page element that matches the specified CSS selector.
QuerySelectorAll Searches for all web page elements that match the specified CSS selector.
Other Categories

TestComplete provides access to internal properties and methods of tested web objects. You can view these properties and methods in the Internet Explorer, Firefox, Chrome and other categories (which categories are available depends on the type of the web browser where your tested web application is running). The TestComplete help file does not include a description of these methods and properties. For information on them, please see the DOM model description and the HTML standards for the web browser you use.

Methods Added to Web Objects When Any Web Tree Model, Except for the Tree Model, is Active.

Name Description
Frame Returns the frame by its index. The method is added to program objects that correspond to a collection of web page frames. If the DOM or Hybrid model is active, the method is added to the Page(...).document.frames program object. If the Tag model is active the method is added to the Page(...).FRAME object.
Item Returns a web page element by its index in the collection of page's elements. If the DOM or Hybrid model is active, the document's element collections contain the Item method. If the Tag model is active, all web page elements are organized into several collections, each of them contains the Item method.
WaitFrame Pauses the script execution until the specified frame becomes available or until the specified time period elapses. The method is added to program objects that correspond to a collection of web page frames. If the DOM or Hybrid model is active, the method is added to the Page(...).document.frames program object. If the Tag model is active, the method is added to the Page(...).FRAME object.
WaitItem Pauses the script execution until the specified web page element becomes available or until the specified time period elapses. If the DOM or Hybrid model is active, the document's element collections contain the WaitItem method. If the Tag model is active, all web page elements are organized into several collections, each of them contains the WaitItem method.

See Also

Web Object
Properties Added to Web Test Objects

Highlight search results