Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
User interface AutoITLibrary=自动化简单的Windows GUI应用程序_User Interface_Automated Tests_Ui Automation_Autoit - Fatal编程技术网

User interface AutoITLibrary=自动化简单的Windows GUI应用程序

User interface AutoITLibrary=自动化简单的Windows GUI应用程序,user-interface,automated-tests,ui-automation,autoit,User Interface,Automated Tests,Ui Automation,Autoit,有谁能帮助我使用Robot Framework AutoITLibrary自动化一个简单Windows应用程序的GUI/UI吗?我只使用了AutoIT工具,但似乎无法使用AutoITLibrary使其正常工作 我尝试了下面的语法,但没有成功。基本上,我只想启动应用程序,然后继续下一步>>下一步>>完成。任何帮助都将不胜感激。谢谢 *** Settings *** | Library | AutoItLibrary *** Variables *** | ${P4Vx64} | C:\\Tem

有谁能帮助我使用Robot Framework AutoITLibrary自动化一个简单Windows应用程序的GUI/UI吗?我只使用了AutoIT工具,但似乎无法使用AutoITLibrary使其正常工作

我尝试了下面的语法,但没有成功。基本上,我只想启动应用程序,然后继续下一步>>下一步>>完成。任何帮助都将不胜感激。谢谢

*** Settings ***
| Library | AutoItLibrary


*** Variables ***
| ${P4Vx64} | C:\\Temp\\setup.exe
| ${Title} | Sample Application


*** Test Cases ***
| Install
| | AutoItLibrary.Run | ${P4Vx64}
| | Control Click | ${Title} | &Next | Button6
| | Control Click | ${Title} | &Next | Button5 
| | Control Click | ${Title} | &Finish | Button3
你为什么不使用?脚本应该看起来非常简单且可读:

from pywinauto.application import Application

app = Application()
app.start_("C:\\Temp\\setup.exe")
mainWindow = app.SampleApplication
mainWindow.Wait('ready')
mainWindow['&Next'].ClickInput()
mainWindow['&Next'].ClickInput()
mainWindow['&Finish'].ClickInput()
mainWindow.WaitNot('visible')

没有运气意味着什么?你有错误吗?应用程序启动了吗?它在做什么你没想到的事?