51Testing软件测试论坛

标题: qtp测试 [打印本页]

作者: 317759580    时间: 2012-1-18 14:37
标题: qtp测试
Window("Microsoft Internet Explorer_2").WinObject("Internet Explorer_Server").Click 885,355        ' 首页
Window("Microsoft Internet Explorer_3").WinObject("Internet Explorer_Server").Click 203,286        ' 点击id输入框
Window("Microsoft Internet Explorer_3").WinObject("Internet Explorer_Server").Type "548745"        ' 登录id
Window("Microsoft Internet Explorer_3").WinObject("Internet Explorer_Server").Click 185,329        ' 点击密码输入框
Window("Microsoft Internet Explorer_3").WinObject("Internet Explorer_Server").Type "123456"        ' 登录密码
Window("Microsoft Internet Explorer_3").WinObject("Internet Explorer_Server").Click 179,411        ' 点击登录
Window("Microsoft Internet Explorer_4").WinObject("Internet Explorer_Server").Click 343,195        ' 点击新邮件
Window("Microsoft Internet Explorer_5").WinObject("Internet Explorer_Server").Click 890,328        ' 点击免费查看Window("Microsoft Internet Explorer_6").WinObject("Internet Explorer_Server").Click 935,34        ' 查看信的内容
Window("Microsoft Internet Explorer_2").Close        ' 关闭页面

运行到红色处  就老是报错   录制时是:IE6
Cannot find the "Internet Explorer_Server" object's parent "Microsoft Internet Explorer_5" (class Window). Verify that parent properties match an object currently displayed in your application.
作者: 317759580    时间: 2012-1-18 14:39
录制的时候密码  一般都是加密的额啊 可这个为什么是明码啊




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2