|
# Program Manager
set_window ("Program Manager", 2);
list_activate_item ("SysListView32", "Internet Explorer");
web_sync(2);
# Browser Main Window
set_window ("Browser Main Window", 0);
toolbar_button_press("MainToolBar_1","Stop");
edit_set ("browser_main_edit_location_0", "");
obj_type ("browser_main_edit_location_0","<kCtrl_L>");
edit_set ("browser_main_edit_location_0", "www.163.com");
obj_type ("browser_main_edit_location_0","<kReturn>");
obj_check_gui("browser_main_edit_location_0", "list1.ckl", "gui1", 12);
edit_check_info("browser_main_edit_location_0","value","http://www.163.com/");
# http://www.163.com/
win_get_text("Browser Main Window", text);
if (text==www.163.com)
tl_step("SuccessWrong text",0,"http://www.163.com/ have been opened");
else
tl_step("Wrong text",1"http://www.163.com/ was found successfully");
treturn(tl_get_status());
在WR上运行没有问题! |
|