|
脚本如下:
char *str1;
int row;
row=rand()%100+1;
if(row<=90)
{
lr_output_message("%s",string);
lr_output_message("随机数为%d",row);
str1=lr_get_attrib_string("url_1");
lr_output_message("%s",str1);
web_url("baidu",
"URL=str1",
"TargetFrame=",
"Resource=0",
"Referer=",
LAST);
}
运行结果:
Action.c(9): we are chinese
Action.c(10): 随机数为67
Action.c(12): http://www.baidu.com
Action.c(13): Warning -32999: Invalid scheme (not "http:" / "https:") in URL="str1" [MsgId: MWAR-32999]
Action.c(13): Error -32999: Invalid scheme (not "http:" / "https:") in URL="str1" [MsgId: MERR-32999]
Action.c(13): web_url("baidu") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
str1已经通过 lr_get_attrib_string()函数赋值,为何在web_url中无法访问呢?谢谢,帮忙解答 |
|