Web Scrapers Generator BrowserExt

getattr

Gets the attribute of html element, given by the xpath expression. Acceptable only inside the loadpage.

var = getattr(xpath, options);
    

Parameters:

xpath The string with the xpath expression, defining the node's address.
options Dictionary of parameters. May contain the following elements:
attr The name of the return attribute. Required.
next If this parameter is set to 'true', getattr will return the attribute of the element next to node requested.
html With this option, you can pass html code, and the function will search elements by xpath in this html code and not in the loaded page.

Returned value: an array of requested nodes attribute.