With Dialog("Login")
.WinEdit("Agent Name:").Set "test"
.WinEdit("Password:").Set "mercury"
.WinButton("OK").Click
End with
If Window("Flight Reservation").Exist=true Then
Reporter.ReportEvent micPass. "验证能够登录"."实际值:能够登录"
else
Reporter.ReportEvent micPass. "验证能够登录"."实际值:不能够登录"
End If
运行 QTP 自带的订票系统
在 QTP 中 如下脚本运行时显示缺少标识别符
答案:1 悬赏:40
解决时间 2021-12-30 10:12
- 提问者网友:伴他一生,无悔
- 2021-12-30 01:21
最佳答案
- 二级知识专家网友:走,耍流氓去
- 2021-12-30 02:20
把else提到和IF一样的位置试试。另外,Window("Flight Reservation").Exist后面不需要再跟“=TRUE”。
试试看吧
试试看吧
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯