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

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related