【问题标题】:Karate UI Automation - How to clear Text from the CK Editor component?空手道 UI 自动化 - 如何从 CK 编辑器组件中清除文本?
【发布时间】:2021-08-14 10:28:37
【问题描述】:

如何从 CK 编辑器中清除所有文本/内容? 我已经尝试了所有方法,例如: 值(定位器,'')或 * 清除(定位器)。即使该字段未清除,仍然无法正常工作且测试用例已通过。

可以在这里参考实际示例 - https://ckeditor.com/docs/ckeditor5/latest/features/mentions.html

谁能帮我解决其他问题? 谢谢

【问题讨论】:

    标签: automation ui-automation karate browser-automation


    【解决方案1】:

    给你:

    * script('.ck-editor__editable', "_.ckeditorInstance.setData('')")
    

    【讨论】:

    • 是的,它现在可以正常工作了。感谢您及时的回复。 @彼得托马斯
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-06
    • 2013-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-12
    相关资源
    最近更新 更多