FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
ElementPtr FB::DOM::Element::getElement ( const int  idx) const

Gets a child element of the specified name.

This is the rough equivilent of the following javascript command

var el2 = element[idx];
idxZero-based index of the element to fetch.
The child element.

Definition at line 212 of file ScriptingCore/DOM/Element.h.

213  {
214  JSObjectPtr api = getProperty<FB::JSObjectPtr>(idx);
215  ElementPtr retVal((api) ? new Element(api) : NULL);
216  return retVal;
217  }
boost::shared_ptr< FB::JSObject > JSObjectPtr
Defines an alias representing a JSObject shared_ptr (you should never use a JSObject* directly) ...
Definition: APITypes.h:109
boost::shared_ptr< Element > ElementPtr
shared_ptr for a FB::DOM::Element