Gets the element in the active tab, satisfying the specified conditions
getElement = function(aTagName, aIndex, aAttributes, aValues, aStrong, aAntiAttributes, aAntiValues, aAntiStrong);
//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); }
//Load a page google.com loadURI('google.com'); //Get the search button var search = getElement('button',0,['class'],['gbq']);