【发布时间】:2021-07-22 01:01:43
【问题描述】:
我看过一些帖子,例如 Cypress - run test in iframe 了解如何在 Cypress 中处理 iframes。但我使用的是旧的和过时的 frames,这是遗留系统(我必须测试)使用的。
我检查了赛普拉斯推荐的Github -Cypress iframes,但没有找到普通旧框架的答案。使用 iframe 的解决方案,没有奏效。
问题与 iframe 相同,当尝试使用选择元素时
cy.get('input').type('test');
您会收到 AssertionError 声明:
Timed out retrying after 4000ms: Expected to find element: input, but never found it.
感谢任何建议。
【问题讨论】: