18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Ajax updatePanel - Sahi injected code -> error on client ajax parser
Hi,
First, what a great tool SAHI is! Second, I have one issue with Ajax updatePanel. When I click on a tab on my web page, I received a pop up error with the following message:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<!--SAHI_INJECT_STAR'.
Using a HTTP spy, I can see that the SAHI injected code seems to break the updatePanel command which is supposed to start with a transaction ID:
<code>
SAHI_INJECT_START
...
SAHI_INJECT_END
21312|updatePanel|upSectionGenerale|
....
</code>
I am wondering...if the SAHI code injection code is done right after the [21312|updatePanel|upSectionGenerale|] line, will it fix my problem?
Thanks!
Julien
First, what a great tool SAHI is! Second, I have one issue with Ajax updatePanel. When I click on a tab on my web page, I received a pop up error with the following message:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<!--SAHI_INJECT_STAR'.
Using a HTTP spy, I can see that the SAHI injected code seems to break the updatePanel command which is supposed to start with a transaction ID:
<code>
SAHI_INJECT_START
...
SAHI_INJECT_END
21312|updatePanel|upSectionGenerale|
....
</code>
I am wondering...if the SAHI code injection code is done right after the [21312|updatePanel|upSectionGenerale|] line, will it fix my problem?
Thanks!
Julien
Comments
Sahi tries to detect AJAX requests and not inject code into them. For .NET apps, the ajax detection needed one more check which we have added recently. I am emailing you a link to a build which you can download to see if this problem is fixed.
Could you please let us know the browser (with version) that you are using?
Regards,
Narayan
The new build you provided by email fixes the error. I was using Internet Explorer 8 (8.0.6001.18702C0).
I have to say Sahi is a really powerfull tool. I was using Selenium (1.x) in the past and to my opinion, Sahi is better and faster. I do really appreciate your quick response to my post!
Regards,
Julien