|
比如我现在要测试在BAIDU首页上点击“MP3”的连接。录好的脚本是这样的
Action1()
{
web_add_cookie("BAIDUID=D79B63C611D255A9A8359A68267099F4:FG=1; DOMAIN=www.baidu.com");
web_add_cookie("BDSTAT=97ab9f054c774bb0cb52f2104a3fbb2c2834349b023b5bb5cfea15ce34d37a2b; DOMAIN=www.baidu.com");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t31.inf",
"Mode=HTML",
EXTRARES,
"URL=/js/bdsug.js?v=1.0.1.0", ENDITEM,
LAST);
web_add_cookie("BAIDUID=D79B63C611D255A9A8359A68267099F4:FG=1; DOMAIN=mp3.baidu.com");
web_add_cookie("BDSTAT=97ab9f054c774bb0cb52f2104a3fbb2c2834349b023b5bb5cfea15ce34d37a2b; DOMAIN=mp3.baidu.com");
lr_think_time(20);
web_add_cookie("BAIDUID=D79B63C611D255A9A8359A68267099F4:FG=1; DOMAIN=eiv.baidu.com");
web_add_cookie("BDSTAT=97ab9f054c774bb0cb52f2104a3fbb2c2834349b023b5bb5cfea15ce34d37a2b; DOMAIN=eiv.baidu.com");
web_add_cookie("BAIDUID=D79B63C611D255A9A8359A68267099F4:FG=1; DOMAIN=img.baidu.com");
web_add_cookie("BDSTAT=97ab9f054c774bb0cb52f2104a3fbb2c2834349b023b5bb5cfea15ce34d37a2b; DOMAIN=img.baidu.com");
web_link("MP3",
"Text=MP3",
"Snapshot=t32.inf",
EXTRARES,
"URL=http://eiv.baidu.com/other/ff.js", ENDITEM,
"URL=http://img.baidu.com/img/mp3/adbg.gif", ENDITEM,
"URL=http://eiv.baidu.com/maimg/20090120/1385234350.swf", ENDITEM,
LAST);
return 0;
}
应该在哪加集合点和事物开始和结束呢,在代码中看不到有点击之类的动作啊,迷惑中。。。 |
|