Docs
API 1.39
Status
Fields

many

The `many` option of an extract field.

When true, the field is a list with one entry per matched element: scalars, or objects when fields is present.

Type: boolean

#Example

{
  "rows": {
    "selector": "table.report tbody tr",
    "many": true,
    "fields": {
      "label": "td:nth-child(1)",
      "amount": {
        "selector": "td[data-col=amount]",
        "type": "money",
        "locale": "tr"
      }
    }
  }
}

From the contract fixture login-2fa-checkpoint-report, a program the test suite validates.

Was this page helpful?