标题: "is not visible"问题 [打印本页] 作者: liyf51 时间: 2008-8-19 17:38 标题: "is not visible"问题 我录制了QTP自带的订票系统,然后把登录模块编写为一个函数,如下面代码:
Function Login(username,password)
Set dlgDesc = description.Create
Set editUserDesc = description.Create
Set editPasswdDesc = description.Create
Set btnOKDesc = description.Create
Dialog(dlgDesc).WinEdit(editUserDesc).Set username
Dialog(dlgDesc).WinEdit(editPasswdDesc).Set password
Dialog(dlgDesc).WinButton(btnOKDesc).Click
End Function