[英]How to get stripe element in cypress
everyone!每个人!
Now I want to write end-to-end tests for web-application on Ionic with stripe-payments and have problem to type card number in stripe iframe field现在我想用 stripe-payments 在 Ionic 上为 web 应用程序编写端到端测试,并且在条带 iframe 字段中输入卡号时遇到问题
I checked this article to understand how to do this stuff:我检查了这篇文章以了解如何执行此操作:
but it doesn't work...但它不起作用......
I have this structure of my HTML:我的 HTML 的结构如下:
Screenshot of my structure我的结构截图
Can you have any idea how to do this你知道怎么做吗
Thank you very much in advance!非常感谢您!
The cypress-plugin-stripe-elements plugin should work: cypress-plugin-stripe-elements插件应该可以工作:
This plugin provides a
fillElementsInput
that makes it easy to fill out Stripe Elements inputs withoutcy.wait()
hacks or anything else.这个插件提供了一个fillElementsInput
,可以轻松填写 Stripe Elements 输入,而无需cy.wait()
hacks 或其他任何东西。cy.fillElementsInput('cardNumber', '4242424242424242');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.