【问题标题】:Any feedback on using CodeceptJS with Sencha ExtJS for testing Automation关于使用 CodeceptJS 和 Sencha ExtJS 进行自动化测试的任何反馈
【发布时间】:2020-04-10 19:25:32
【问题描述】:

您好,我需要对使用 Sencha ExtJS 制作的应用程序进行自动化测试。 codeceptJS 是一个可行的选择吗?

我担心如何使用图标按钮。在 Sencha 中,ID 也是动态生成的。

【问题讨论】:

标签: testing extjs automation codeceptjs


【解决方案1】:

您可以使用Ext.ComponentQuery.query https://docs.sencha.com/extjs/7.0.0/modern/Ext.ComponentQuery.html#method-query 访问您的组件。

例如,您可以使用 Ext.ComponentQuery.query('#itemId')Ext.ComponentQuery.query('xtype'),具体取决于您的应用程序。

如果您需要访问 DOM 节点,您可以使用 component.el.dom 其中组件是 ExtJS 组件(例如,使用 ComponentQuery 选择)

【讨论】:

    猜你喜欢
    • 2023-02-01
    • 2023-04-07
    • 2017-01-05
    • 2015-10-30
    • 2017-05-19
    • 2012-09-27
    • 2022-11-08
    • 1970-01-01
    • 2020-06-30
    相关资源
    最近更新 更多