Gets data from an element (with a query selector)
Options:
Option | Required | Description | Example |
---|---|---|---|
value | true | (string) Element attribute (property) to fetch. Possible Values : innerHtml | image | link | text | textContent | any element attribute ( which can run element.getAttribute() in browser ) | text |
variableName | true | (string) A Name to store the fetched values in. | fetchedData |
querySelector | true | (string) Query selector of the element to get data from. | div.main-container |
parser | false | (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 an element
{
"action": "get",
"options": {
"value": "text",
"variableName": "fetchedData",
"querySelector":"div.main-container"
}
}
Example 2: Extracts all the numbers from the text of an element
{
"action": "get",
"options": {
"value": "text",
"variableName": "fetchedData",
"querySelector":"div.main-container",
"parser":"Numbers"
}
}