51Testing软件测试论坛

标题: GUI无法抓取 IE 弹出窗体(如确定取消弹出窗体)? [打印本页]

作者: liu_qong    时间: 2007-1-15 16:01
标题: GUI无法抓取 IE 弹出窗体(如确定取消弹出窗体)?
# 管理系統 - Microsoft Internet Explorer
        set_window ("管理系統 - Microsoft Internet Explorer", 1);
        obj_mouse_click ("Internet Explorer_Server", 496, 264, LEFT);
        obj_type ("Internet Explorer_Server","ADMIN<kBackSpace><kBackSpace><kBackSpace><kBackSpace>");
        obj_type ("Internet Explorer_Server","<kBackSpace><kBackSpace><kBackSpace><kBackSpace>ad");
        obj_type ("Internet Explorer_Server","min<kTab>admin");
        obj_mouse_click ("Internet Explorer_Server", 487, 316, LEFT);
        obj_mouse_click ("Internet Explorer_Server", 82, 254, LEFT);

# Microsoft Internet Explorer

        set_window ("Microsoft Internet Explorer", 2);   #IE 弹出窗体
        button_press ("确定");                                     #在 IE 弹出窗体上点确定
       
。。。。。。。。我用GUI Map file per test 进行录制的。但运行代码到IE弹出窗体时就报错了,说找不到窗体的 Map 。真不知怎么办了?




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