手动关联出错
请教LR8.0自动示例中,手动关联登陆脚本出现的问题这个是自动关联的,回放的时候能够通过
#include "web_api.h"
Action()
{
//自动关联(关联后回放脚本时,可以通过)
web_reg_save_param( "WCSParam_Diff1",
"LB=userSession value=",
"RB=>",
"Ord=1",
"Search=Body",
"RelFrameId=1.2.1",
LAST);
//手动关联(关联后回放脚本,不能通过)
web_reg_save_param("login_session",
"LB=userSession value=",
"RB=>",
"Ord=ALL",
"Search=Body",
LAST);
手动关联出错:Action.c(50): Error -27987: Requested image not found
Action.c(50): web_image("SignOff Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes
web_url("MercuryWebTours",
"URL=http://localhost/MercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(6);
web_submit_data("login.pl",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=wxq", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=36", ENDITEM,
"Name=login.y", "Value=9", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
}
为什么我的自动关联有时候可以,有时候不行 web_image 怎么没有URL的呢
回复 2# 的帖子
版主为什么我用遨游录制脚本,有sessionid,用ie 找不到,只有cookies
很郁闷啊,
无法自动关联
没有sessionid 手动关联也不行啊,
怎么解决,在线等!!!!:( 你在首页面上找,有的。最好不要用其他的浏览器。就用ie,而且最好是6的版本。
回复 4# 的帖子
解决了,谢谢![ 本帖最后由 julioguo 于 2010-6-17 17:03 编辑 ] 嚯,楼主真慷慨哦,哈哈!
以后有问题我继续顶你哈!
页:
[1]