If Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").Exist(1) Then'出现第三方界面情况,即登录失败
If status="用户名或密码错误!" Then
Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").WinButton("确定").Click
Browser("My JSP 'admin_login.jsp'").Page("My JSP 'admin_login.jsp'").Sync
Browser("My JSP 'admin_login.jsp'").Close
Reporter.ReportEvent micPass,"登录失败",status
End If
If status="请输入验证码!" Then
Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").WinButton("确定").Click
Browser("My JSP 'admin_login.jsp'").Page("My JSP 'admin_login.jsp'").Sync
Browser("My JSP 'admin_login.jsp'").Close
Reporter.ReportEvent micPass,"登录失败",status
End If
If status="验证码错误!" Then
Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").WinButton("确定").Click
Browser("My JSP 'admin_login.jsp'").Page("My JSP 'admin_login.jsp'").Sync
Browser("My JSP 'admin_login.jsp'").Close
Reporter.ReportEvent micPass,"登录失败",status
End If
If status="请输入密码!" Then
Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").WinButton("确定").Click
Browser("My JSP 'admin_login.jsp'").Page("My JSP 'admin_login.jsp'").Sync
Browser("My JSP 'admin_login.jsp'").Close
Reporter.ReportEvent micPass,"登录失败",status
End If
If status="请输入用户名!" Then
Browser("My JSP 'admin_login.jsp'").Dialog("Microsoft Internet Explorer").WinButton("确定").Click
Browser("My JSP 'admin_login.jsp'").Page("My JSP 'admin_login.jsp'").Sync
Browser("My JSP 'admin_login.jsp'").Close
Reporter.ReportEvent micPass,"登录失败",status
End If