|
2#
楼主 |
发表于 2006-10-30 14:22:50
|
只看该作者
WinRunner:To click on a dynamic link
Description
Dynamic links cannot be added in the GUI MAP becuase they change so here's a function that will help you add the link to the GUI MAP temporarily and also click on the link
Solution
public function web_click_dynamic_link(in link)
{
auto res_arr[];
#extern FalconASGui;
GUI_add ("","page_name",link,"{class: object,MSW_class: html_text_link,html_name: \"" & link & "\"}");
set_window("page_name",10);
win_find_text("page_name",link,res_arr);
win_click_on_text("page_name",link,res_arr[1],res_arr[2],res_arr[3],res_arr[4],FALSE,LEFT);
wait(3);
web_sync(10);
GUI_delete("","page_name",link);
} |
|