Loadrunner 9.52 replay error on Ajax Click and Script

Hi, I have an issue recording an applicaction using AJAX Click & Script protocol on LR 9.52

The recording is ok, but there's a JavaScript error on replay.

Action.c(97): Warning -26276: JavaScript error (id=39) in line 482: TypeError: form.__EVENTTARGET has no properties [MsgId: MWAR-26276]
Action.c(97): Warning -26276: JavaScript error (id=0) in line 1: JavaScript evaluation error when executing function (by pointer) [MsgId: MWAR-26276]
Action.c(97): web_list("ctl00$RightContent$ddlCycleNo") highest severity level was "warning" [MsgId: MMSG-26391]

The script that generate this error is this:

I can see on page source that it uses a very common JS postback function.

<SCRIPT type="text/javascript">
//<BR />var theForm = document.forms['aspnetForm'];<BR />if (!theForm) {<BR /> theForm = document.aspnetForm;<BR />}<BR />function __doPostBack(eventTarget, eventArgument) {<BR /> if (!theForm.onsubmit || (theForm.onsubmit() != false)) {<BR /> theForm.__EVENTTARGET.value = eventTarget;<BR /> theForm.__EVENTARGUMENT.value = eventArgument;<BR /> theForm.submit();<BR /> }<BR />}<BR />//

Because of this a button stay disabled and I can't finish the replay.

Did anybody face a similar issue?

Thanks in advance,

Parents Reply Children
No Data