|
ExecuteFile TestPath+"Initialize.vbs"
Url(sUrl)
With Browser("name:= .*").Page("title:= .*")
.Sync
If .WebEdit("html id:= ctl00_loginview1_LoginView1_login1_ipt_UserName").Exist(0) And .WebEdit("html id:= ctl00_loginview1_LoginView1_login1_ipt_PassWord").Exist(0)Then
Reporter.ReportEvent micDone,"UserName/Password","Object Exist"
.WebEdit("html id:= ctl00_loginview1_LoginView1_login1_ipt_UserName").Set UserName
.WebEdit("html id:= ctl00_loginview1_LoginView1_login1_ipt_PassWord").Set Password
Else
Reporter.ReportEvent micFail,"UserName/Password","Object Not Exist"
End If
.WebButton("html id:= ctl00_loginview1_LoginView1_login1_btn_submit").Click
'.WebButton("html id:= btn_Agree").Click
'.Image("html id:= ctl00_loginview1_LoginView1_LoginSucess1_imglogout").Click
End With
Reporter.ReportEvent micDone,"UserName/Password","Object Exist"
报General run error错误 |
|