|
2#
楼主 |
发表于 2007-10-16 22:56:22
|
只看该作者
Dialog("Login").WinEdit("Agent Name:").Set "admin"
Dialog("Login").WinEdit("Password:").SetSecure "4714cac219e9df77d79af15a3355d9b0c20fc92d"
Dialog("Login").WinButton("OK").Click
wait 10
If window("Flight Reservation").Exist =true and dialog("Login").Exist<>true then
reporter.ReportEvent micPass,"登陆","PASS"
else
reporter.ReportEvent micPass,"登陆","FAIL"
end if
Window("Flight Reservation").Close
又录制了一个,虽然成功了,但详细查看后,发现,显示的是 登陆 FAIL SUCCESS
快要疯了
window("Flight Reservation").Exist =true 与 window("Flight Reservation").Exist有什么区别???
[ 本帖最后由 lhjtc8257 于 2007-10-16 23:17 编辑 ] |
|