|
代码如下:
web_submit_data("reservations.pl_2",
"Action=http://127.0.0.1:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t22.inf",
"Mode=HTML",
ITEMDATA,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=depart", "Value={origin}", ENDITEM,
"Name=departDate", "Value=03/09/2011", ENDITEM,
"Name=arrive", "Value=Los Angeles", ENDITEM,
"Name=returnDate", "Value=03/10/2011", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=.cgifields", "Value=roundtrip", ENDITEM,
"Name=.cgifields", "Value=seatType", ENDITEM,
"Name=.cgifields", "Value=seatPref", ENDITEM,
"Name=findFlights.x", "Value=33", ENDITEM,
"Name=findFlights.y", "Value=11", ENDITEM,
LAST);
web_image_check("web_image_check",
"expect=Found",
"Alt=",
"Src=/WebTours/images/button_next.gif",
"matchcase=no",
"repeat=no",
"report=failure",
"Onfailure=abort",
LAST);
日志如下:
Action.c(252): Fatal Error -27191: "web_image_check" failed (0 occurrence(s) found. Alt="", Src="/WebTours/images/button_next.gif") [MsgId: MERR-27191]
Action.c(252): web_image_check highest severity level was "FATAL ERROR" [MsgId: MMSG-26391]
页面的源文件如下:
<input type="image" name="reserveFlights" src="/WebTours/images/button_next.gif" border="0" />
实在不知道该怎么改了,请各位帮忙,在线等
|
|