Содержание

getElement

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

Syntax

getElement = function(aTagName, aIndex, aAttributes, aValues, aStrong,
  aAntiAttributes, aAntiValues, aAntiStrong);

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 !== ''){
      //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']);