Содержание

GetElement

Gets the element in the active tab, satisfying the specified conditions

Syntax

function GetElement(aTagName: string='*'; aIndex: integer=-1;
  aAttributes, aValues: array of string=[];
  aStrong: boolean=false; aAntiAttributes, aAntiValues: array of string=[];
  aAntiStrong: boolean=false): TCSElement;

Parameters

Returned value

Notes

Examples

  1. //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);
  2. //Load a page google.com
    LoadURI('google.com');
    //Get the search button
    var search:=GetElement('button',0,['class'],['gbq']);