|
录制的脚本有一个提交表单的操作,我想用定义的变量,来替换掉,表单里的数据,大家帮我看下该怎么做
脚本如下:web_submit_form("login.pl",
"Snapshot=t9.inf",
ITEMDATA,
"Name=username", "Value=1", ENDITEM,
"Name=password", "Value=1", ENDITEM,
"Name=passwordConfirm", "Value=1", ENDITEM,
"Name=firstName", "Value=", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=register.x", "Value=53", ENDITEM,
"Name=register.y", "Value=6", ENDITEM,
LAST);
比如这个"Name=username", "Value=1", ENDITEM, 我想把1换成变量int i ,我新手,大家帮我看看怎么做,谢谢
[ 本帖最后由 五月的奶茶 于 2010-7-12 13:44 编辑 ] |
|