Skip to content

← All questions

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

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

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?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related