Skip to content

← All questions

How do I fill a Stripe Elements card field from a feature file?

Asked 5,120 views2 answers

Checkout uses Elements, so the card number is inside an iframe. The obvious step does not find it:

gherkin
When I fill the "Card number" field with "4242424242424242"
text
Could not locate "Card number" field

Which is fair enough — it is not in the main frame. I cannot find a frame step in the step library. Is there one under a name I would not guess?

asked by Owen Brackley144 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related