How do I enter data into a form input in an iframe using cypress?

后端 未结 8 1678
渐次进展
渐次进展 2021-02-05 14:01

I have been trying to test a stripe checkout form using cypress.io

If anyone has managed to get this to work please let me know. I found a thread on the matter here http

8条回答
  •  时光说笑
    2021-02-05 14:12

    The solution in this link is working for me. Basically, the steps are as below:

    1. Set chromeWebSecurity to false in cypress.json
    2. Add cypress command to get the iframe in command.js
    3. Use the iframe command in the script

提交回复
热议问题