GetElementsAttribute

Gets an array of values ​​of the specified attribute of specified elements

Syntax

function GetElementsAttribute(aElements: TCSElements; aAttribute: string): array of string;

Parameters

  • aElements
  • aAttribute
    • type: string
    • functions: attribute, values of which are to be obtained

Returned value

  • type: array of string
  • functions: array of attribute values

Examples

  1. //Loading page google.ru
    LoadURI('google.ru');
    //Get an elements array "div"
    var elements:=GetElements('div');
    //Get an array of attribute "id" values of elements array.
    var ids:=GetElementsAttribute(elements,'id');