Search condition

Definition:

A search condition is a string parameter for a method that searches for Browsers, Frames or Elements It is a comma-separated list of:
 "attribute  = test value" or
 "attribute != test value"

The attribute in a search condition depends on the context where the search condition appears. A search condition is true if the tested relationship between the value of the attribute and the test value is true. The valid operators in a search condition are: "=" equality and "!=" inequality.

Serach conditions are used in one of the following methods: FindBrowser, FindElement, FindChildElement, FindAllElements, FindChildrenElements FindFrame, FindChildFrame, FindModelessHtmlDialog, FindParentElement WaitToLoad.

Remarks:

* and ? wildcards are accepted in search condition.
Usually, search methods are affected by loadTimeout and searchTimeout properties.

A special zero-based index attribute is available in search condition for FindElement, FindChildElement, FindFrame and FindChildFrame methods. It specifies the ordinal position in the collection of objects generated by the remaining search conditions.

Example:

var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.FindBrowser("URL=http://www.codecentrix.com/");
var element = browser.FindElement("A", "href=http://www.codecentrix.com/download.htm");

See also:

Core | Browser | Frame | Element

© 2017 CodeCentrix Software. All rights reserved.