CodeMirror 的黄瓜测试
我想编写黄瓜测试(bdd)来用“abcd”填充codemirror。但我不能写
When I fill in "myFrame" with "abcd"
codemirror 隐藏了 textarea 并且文本区域被 iframe 替换。如果有文本区域,我会简单地写“
When I fill in "myFrame" with "abcd"
但我不知道如何编写填充代码镜像的测试”。可能我需要添加自定义步骤。如果我知道如何将数据插入 iframe,我想我的问题就会得到解决。我愿意接受建议。
I want to write cucumber test (bdd) for filling in codemirror with "abcd". But I cannot write
When I fill in "myFrame" with "abcd"
The codemirror hides the textarea and the text area is replaced by iframe. If there would have been text area, I would have simply written
When I fill in "myFrame" with "abcd"
But I don't know how to write test for filling in codemirror. May be I need to add custom step. If I could any how know to insert data into iframe, I think my problem would be solved. I am open to suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
包装器 DIV 上存在一个 CodeMirror 属性(具有 CodeMirror 类)。
所以你可以执行脚本:
There exists a CodeMirror property on the wrapper DIV (which has class CodeMirror).
So you can execute the script :