单选项radio如何处理?
如果页面有10条记录,每条记录我只想要选择其中一条进行处理(第一条是动态变化的)
录制了两变了(分别选择第一条记录和第二条记录),发现录制完成后,脚本几乎没什么不一样的地方。下面是我选择第二笔记录时候的录制情况:
web_submit_data("searchcancle2.jsf_2",
"Action=http://ip/trade/searchcancle2.jsf",
"Method=POST",
"RecContentType=text/html",
"Referer=http://ip/trade/searchcancle2.jsf",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=_eosFlowKey", "Value=3d1c40eb-792a-448b-9837-3857ffa76f5b.view0", ENDITEM,
"Name=_eosFlowDataContext", "Value=rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAAAeA==", ENDITEM,
"Name=_eosFlowID", "Value=cn.ccb.cisfm.trade.pageflow.searchcancle.flow", ENDITEM,
"Name=_eosLastRequestURL", "Value=cn.ccb.cisfm.trade.pageflow.searchcancle.flow", ENDITEM,
"Name=_eosFlowAction", "Value=cancel", ENDITEM,
"Name=theform:repResults", "Value=", ENDITEM,
"Name=theform:invAcc", "Value=", ENDITEM,
"Name=theform:orderNo", "Value=", ENDITEM,
"Name=theform:cancelBtn", "Value=撤 单", ENDITEM,
"Name=theform:itemsTable:page_begin", "Value=0", ENDITEM,
"Name=theform:itemsTable:page_count", "Value=918", ENDITEM,
"Name=theform:itemsTable:page_iscount", "Value=true", ENDITEM,
"Name=theform:itemsTable:page_length", "Value=10", ENDITEM,
"Name=theform:itemsTable:page_currentPage", "Value=1", ENDITEM,
"Name=theform:itemsTable_0:_id22", "Value=W", ENDITEM,
"Name=theform:itemsTable_0:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=radio", "Value=on", ENDITEM,
"Name=theform:itemsTable_1:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_1:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_2:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_2:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_3:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_3:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_4:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_4:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_5:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_5:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_6:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_6:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_7:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_7:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_8:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_8:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_9:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_9:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:isSelFlag", "Value=2663", ENDITEM,
"Name=theform_SUBMIT", "Value=1", ENDITEM,
"Name=autoScroll", "Value=", ENDITEM,
"Name=theform:_link_hidden_", "Value=", ENDITEM,
EXTRARES,
"Url=../supres/images/btn-bg.gif", ENDITEM,
"Url=../supres/images/sor_header.jpg", ENDITEM,
"Url=../supres/images/bottom.gif", ENDITEM,
LAST); 试一下参数化 肯定会有不同的 你用LR自带的对比工具 看一下把
页:
[1]