Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在自动化ExtJS应用程序方面,是否有开源或付费的selenium替代方案_Extjs_Automation - Fatal编程技术网

在自动化ExtJS应用程序方面,是否有开源或付费的selenium替代方案

在自动化ExtJS应用程序方面,是否有开源或付费的selenium替代方案,extjs,automation,Extjs,Automation,我希望实现extjs应用程序的自动化,我们都知道selenium不支持extjs应用程序。请建议我,如果你已经面对同样的问题,并提出了解决上述问题的办法 谢谢,Sencha提供了他们的测试工具,或者您可以使用Selenium,或者您仍然可以使用Selenium,只需编写自己的API函数来单击按钮等等,这可以使用 我可以分享一段API代码,我们用来测试非常特定的ExtJS项目,但我们不能使用test/Siesta。代码是用Python编写的 def ext_component_query_retu

我希望实现extjs应用程序的自动化,我们都知道selenium不支持extjs应用程序。请建议我,如果你已经面对同样的问题,并提出了解决上述问题的办法


谢谢,

Sencha提供了他们的测试工具,或者您可以使用Selenium,或者您仍然可以使用Selenium,只需编写自己的API函数来单击按钮等等,这可以使用

我可以分享一段API代码,我们用来测试非常特定的ExtJS项目,但我们不能使用test/Siesta。代码是用Python编写的

def ext_component_query_return(self, query, question, target='AppManager'):
    script = 'Ext.ComponentQuery.query("{0}")[0]{1}'.format(query, question)
    return self.ext_script(script, target=target)

def ext_component_id(self, query, target='AppManager'):
    return self.ext_component_query_return(query, '.getId()', target=target)

def ext_component_isVisible(self, query, target='AppManager'):
    return self.ext_component_query_return(query, '.isVisible(true)', target=target)

def ext_component_isDisabled(self, query, target='AppManager'):
    return self.ext_component_query_return(query, '.isDisabled()', target=target)
以下是单击按钮的示例:

s_button_id = self.ext_component_id('#activation-success-card button')
s_button = self.ins.app_manager.find_element_by_id(s_button_id)
s_button.click()

Sencha提供了他们的测试工具,或者您可以使用Selenium,或者您仍然可以使用Selenium,只需编写自己的API函数来单击按钮等等,使用Ext.query就可以非常轻松地完成