Gets the element in the active tab, satisfying the specified conditions
function GetElement(aTagName: string='*'; aIndex: integer=-1; aAttributes, aValues: array of string=[]; aStrong: boolean=false; aAntiAttributes, aAntiValues: array of string=[]; aAntiStrong: boolean=false): TCSElement;
//Obtain a random element from all, having tag "a" (obtain random link) var element:=GetElement('a'); //If the element is found, the if element.varName<>'' then //emulate a click on it ClickElement(element);