Winrunner如何判断某个窗口是否已经打开?
如名称为“Open File”的窗口是否打开了,免得win_activate ("Open File");时出错,谢谢! win_exists("窗口", 时间); if (win_exists ("Order PrintOut")==E_OK)report_msg ("Activating list item doesn't open the PrintOut form.");
else
win_close ("Order PrintOut"); 如果被测软件过慢,弹出窗口需要时间的话,最好先用wait(秒)
页:
[1]