Search condition


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.


* 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.


var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.FindBrowser("URL=");
var element = browser.FindElement("A", "href=");

See also:

Core | Browser | Frame | Element

© 2017 CodeCentrix Software. All rights reserved.