|
# 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", "http://newtours.mercuryinteractive.com");
obj_type ("browser_main_edit_location_0","<kReturn>");
obj_check_gui("browser_main_edit_location_0", "list1.ckl", "gui1", 12);
win_check_gui("Welcome: Mercury Tours", "list2.ckl", "gui2", 28);(这个就是你双击出来的TSL)
# http://newtours.mercuryinteractive.com/
win_get_text("Browser Main Window", text);
if (text==newtours.mercuryinteractive.com)
tl_step("SuccessWrong text",0,"http://newtours.mercuryinteractive.com/ have been opened");
else
tl_step("Wrong text",1"http://newtours.mercuryinteractive.com/ was found successfully");
treturn(tl_get_status()); |
|