get-all

Gets data from all matching elements (with a query selector)

Options:

OptionRequiredDescriptionExample
valuetrue(string) Element attribute (property) to fetch. Possible Values : innerHtml | image | link | text | textContent | any element attribute ( which can run element.getAttribute() in browser )text
variableNametrue(string) A Name to store the fetched values in.fetchedData
querySelectortrue(string) Query selector of the element to get data from.div.main-container
parserfalse(string) Parse output data to meaningful data. Possible Values: Numbers | Email | Emails | URL | URLs | Split by Comma | Split by Space.Split by Space

Example 1: Gets text from all matching elements

{ "action": "get-all", "options": { "value": "text", "variableName": "fetchedData", "querySelector":"div.main-container" } }

Example 2: Extracts all the numbers from texts of all matching elements

{ "action": "get-all", "options": { "value": "text", "variableName": "fetchedData", "querySelector":"div.main-container", "parser":"Numbers" } }