Gets data from multiple repeated places under the same parent element (with a query selector)

Options:

Option

Required

Description

Example

data

true

(array) Data to collect. Keys of an Object in the Array: value & variableName & querySelector. Multiple objects can be there.

[
{
"value":"link",
"variableName":"searchLink",
"querySelector":"a"
}
}

dataName

true

(string) A Name to store all fetched values in.

fetchedData

parentSelector

true

(string) Query selector of the parent element to get data from.

".g"

Example 1: Gets all links from the given parent element

{
  "action": "get-data",
  "options": {
    "data": [
      {
        "value": "link",
        "variableName": "searchLink",
        "querySelector": "a"
      }
    ],
    "dataName": "searchResults",
    "parentSelector": ".g"
  }
}