|
如上图所示:主域名注册时间和主域名到期时间这两个字段为只读属性,可以在网页的源代码中看出来:
<input type="text" name="mainDomainRegistDate" value="" readonly="readonly" id="change5" class="input">
<input type="text" name="mainDomainMaturDate" value="" readonly="readonly" id="change6" class="input">
在录制这个表单提交的脚本中居然没有发现这两个字段的代码:我把这个表单提交的脚本贴出来,如下
web_submit_form("wapcustomer.do",
"Snapshot=t4.inf",
ITEMDATA,
"Name=createdBy", "Value=手机", ENDITEM, //录入人员姓名
"Name=customerName", "Value=手机", ENDITEM, //客户名称
"Name=email", "[email=Value=kuangjianke4@sohu.com]Value=kuangjianke4@sohu.com[/email]", ENDITEM, //客户邮箱地址
"Name=mainDomain", "Value=waptest004", ENDITEM, //主域名
"Name=domainAlias", "Value=", ENDITEM, //其他别名
EXTRARES,
"Url=images/page_bg.gif", ENDITEM,
"Url=images/top.gif", ENDITEM,
"Url=images/top1.gif", ENDITEM,
"Url=images/bg_leftmid.gif", ENDITEM,
"Url=images/bg_seccol.gif", ENDITEM,
"Url=images/bg_mcontentM.gif", ENDITEM,
"Url=images/bg_lefttop.gif", ENDITEM,
"Url=images/bg_inh.gif", ENDITEM,
"Url=images/bg_inbott.gif", ENDITEM,
"Url=images/bg_leftbott.gif", ENDITEM,
"Url=images/buttonLight90.gif", ENDITEM,
"Url=images/buttonLight70.gif", ENDITEM,
LAST);
上面的脚本中偏偏没有录到“主域名注册时间”和“主域名到期时间”这两个字段的代码,然后我想是不是只读属性造成的呢,于是我自己手动把这两个字段的代码加了进去,修改完的代码如下:
web_submit_form("wapcustomer.do",
"Snapshot=t4.inf",
ITEMDATA,
"Name=createdBy", "Value=手机", ENDITEM,
"Name=customerName", "Value=手机", ENDITEM,
"Name=email", "[email=Value=kuangjianke4@sohu.com]Value=kuangjianke4@sohu.com[/email]", ENDITEM,
"Name=mainDomain", "Value=waptest004", ENDITEM,
"Name=mainDomainRegistDate", "Value=2007-02-14", ENDITEM,
"Name=mainDomainMaturDate", "Value=2007-07-31", ENDITEM,
"Name=domainAlias", "Value=", ENDITEM,
EXTRARES,
"Url=images/page_bg.gif", ENDITEM,
"Url=images/top.gif", ENDITEM,
"Url=images/top1.gif", ENDITEM,
"Url=images/bg_leftmid.gif", ENDITEM,
"Url=images/bg_seccol.gif", ENDITEM,
"Url=images/bg_mcontentM.gif", ENDITEM,
"Url=images/bg_lefttop.gif", ENDITEM,
"Url=images/bg_inh.gif", ENDITEM,
"Url=images/bg_inbott.gif", ENDITEM,
"Url=images/bg_leftbott.gif", ENDITEM,
"Url=images/buttonLight90.gif", ENDITEM,
"Url=images/buttonLight70.gif", ENDITEM,
LAST);
因为这两个字段是必须填写的,所以原来录制的脚本中在回放的时候会出现http500的错误,就是因为没有录制到代码,等于那两个字段就以null提交了,现在经过修改过的脚本在回放的时候在执行日志中提示:错误 -27983: 正在尝试修改“readonly”字段“mainDomainRegistDate” [MsgId: MERR-27983],也不能成功。sdlkfj9
所以想请教一下各位有谁碰到过这样的问题啊,大家给我帮帮忙!!sdlkfj2 |
|