StrikekitStrikekit

store

Capture page text or field values into @ or @@ slots

Capture a labeled element's text or field value into a named slot for later steps.

Syntax

When I store "@slot" from "<label>"
When I store "@@slot" from "<label>"
When I store "@slot" from api json "<gjson-path>"

Qualifiers

QualifierRoleExample
fromSource element labelstore "@csrf" from "csrf-field"
from api jsonPath into last API response body (gjson)store "@order-id" from api json "$.id"

Examples

When I store "@csrf" from "csrf-field"
When I store "@@order-id" from "confirmation-number"
Then I should see "@csrf"
When I fill "token" with "@csrf"
When I store "@order-id" from api json "$.id"

Notes

  • @slot — scenario scope; cleared at the next Scenario: / Feature:.
  • @@slot — group scope; shared across scenarios in the same file run on one browser.
  • Slot names must start with @ or @@. Values such as "user@example.com" are literals, not slots.
  • Resolve order for quoted values: whole-string slot → {{faker}}$ENV → literal.
  • from api json requires Platform: api and a prior API response. It does not change UI store … from.

On this page