|
3#
楼主 |
发表于 2012-8-25 22:05:18
|
只看该作者
比如我在搜索的时候,用携程的搜索举例,下面是post的data,
web_submit_data("IndexSearch.ashx",
"Action=http://vacations.ctrip.com/booking/IndexSearch.ashx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://vacations.ctrip.com/",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=SearchText", "Value=三亚", ENDITEM,
"Name=Channel", "Value=1", ENDITEM,
"Name=ClientSource", "Value=Online", ENDITEM,
"Name=StartCity", "Value=2", ENDITEM,
"Name=SearchID", "Value=323", ENDITEM,
"Name=SearchType", "Value=D", ENDITEM,
"Name=SearchValue", "Value=61", ENDITEM,
EXTRARES,
然后对搜索结果进行了操作,下面是操作的脚本,切换到了团队游界面
web_url("grouptravel-2Z323B64-D-61-shanghai-sanya",
"URL=http://vacations.ctrip.com/grouptravel-2Z323B64-D-61-shanghai-sanya",
"Resource=0",
"RecContentType=text/html",
"Referer=http://vacations.ctrip.com/whole-2Z323-D0-shanghai-sanya/?SearchValue=61&searchText=%c8%fd%d1%c7",
"Snapshot=t36.inf",
"Mode=HTML",
EXTRARES,
那如果我要对这个搜索进行参数化,就是搜索不同的目的城市,然后对搜索的结果进行操作,请问怎么做? |
|