|
我录制了一段脚本:
# Shell_TrayWnd
set_window ("Shell_TrayWnd", 3);
toolbar_button_press ("ToolbarWindow32_1", "Login - Microsoft Internet Explorer"); # Button Number 6;
# Login
set_window("Login",24);
edit_set("txtLoginName","yj");
obj_type("txtLoginName","<kTab>");
password_edit_set("txtPassword","a59183ff752d3f7c");
button_press("登录");
# Shell_TrayWnd
set_window ("Shell_TrayWnd", 14);
toolbar_button_press ("ToolbarWindow32_1", "WinRunner - [C:\\WINDOWS\\Temp\\as*]"); # Button Number 3;
可回放的时候却不能成功回放,
(1)toolbar_button_press ("ToolbarWindow32_1", "Login - Microsoft Internet Explorer"); # Button Number 6;
(2)toolbar_button_press ("ToolbarWindow32_1", "WinRunner - [C:\\WINDOWS\\Temp\\as*]"); # Button Number 3;
这两个ToolbarWindow32_1不能识别,而我又不知道在哪里找这个对象了,有什么办法能让WR自动的带我去识别这个对象所在的地方吗? |
|