Scope and in examples
iframe scope to and nested element in stack as .stk files
scope is for iframes/frames. in is for nested page regions (cards, sections). They compose independently.
iframe scope
Platform: web
Group: Scope
Scenario: Fill inside payment iframe
Given I navigate to "$BASE_URL/checkout"
When I scope to "Payment frame"
And I fill "card-number" with "4111111111111111"
And I fill "cvc" with "123"
And I click on "Pay"
Then I should see "Processing"
When I scope to "page"
Then I should see "Order confirmation"Nested element in stack
Platform: web
Group: Scope
Scenario: Act inside nested product cards
Given I navigate to "$BASE_URL/products"
When I in "products"
And I in "Laptop"
And I fill "note" with "gift wrap"
And I click on "Add to cart"
When I in ".."
And I in ".."
Then I should see "Cart"
When I in "page"
And I click on "Checkout"One-shot in without changing the stack
Platform: web
Group: Scope
Scenario: Click inside a card once
Given I navigate to "$BASE_URL/products"
When I click on "Delete" in "Laptop"
Then I should not see "Laptop"