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 not working
Hi I have a similar problem. Whereever AJAX requests are involved those calls are not getting executed. I am using Sahi V3 version. I am new in using Sahi. Any help would be appreciated
Regards
Niraj.
Regards
Niraj.
Comments
It is possible that Sahi is not able to detect the AJAX request and is injecting its code in the AJAX responses. Please have a look at this thread: http://sahi.co.in/forums/viewtopic.php?id=1878
Let us know if you are still unable to resolve this.
Regards,
Narayan
PS: Please don't open threads which are over 2 years old.
As mentioned in the post i added the .*myrecipe[.]php which is the php script in which there are AJAX requests to the exclude_inject.txt but still AJAX requests on that page are not getting executed.
On that page i have several div's which contains title of a recipe. Clicking on any of the div's displays the detailed recipe corresponding to that title through AJAX.
Regards,
Niraj.
Is
1) myrecipe.php the actual AJAX request, or
2) is it the page on which different components are loaded via ajax requests?
exclude_inject should use the actual AJAX request url (case 1).
Regards,
Narayan
myrecipe.php was the page in which different components were loaded via ajax requests. Actual ajax request was to ajaxrequesthandler.php. So i added that into the exclude_inject.txt file and then restarted Sahi and still i am not able to get it work.
Regards,
Niraj.
And i have noticed through fiddler that it is not able to make request to ajaxrequesthandler.php......Where as if i don't run the proxy server then the Ajax request shows up in the fiddler.