Back to all steps

Remember text

Step fields
1 slot (slot)
2 selector (text)
In a scenario, fields are joined with |.
Remembers an element’s text into a slot for the duration of the test run (cleared afterwards). Two fields: slot (Slot 1–4) and the selector of the element whose text to capture.
Selector examples: .product-card a[href] · h1.product-title · input[type="text"].
Then in “I see”/“I don’t see” steps use rmb:slot_1 — it is replaced with the captured value. Use case: pick a product by selector on the listing → remember its name into a slot → verify i_see rmb:slot_1 in the cart (the product name is unknown in advance on a dynamic listing).