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.
Some functionality and some form objects missing when running sahi
Hello,
We have a content management application which loads some translation scripts when moving to different forms. When this is used in a stand-alone mode( not under sahi), everything works fine. When attempting to test it under sahi, although most things work, the log always list errors such as:
undefined: SyntaxError: syntax error (https://management-ui/translation/jqueryValidation/en-gb:2)
No trace available
Or:
undefined: ReferenceError: JQUERY_VALIDATION_LANGUAGE_TRANSLATION is not defined (https://management-ui/assist/ajax/accounts/js/:3403)
No trace available
There are also objects which do NOT show when running under sahi. They are all there and functional when running stand-alone.
Is there a way to get sahi to ignore the translation scripts?
We have a content management application which loads some translation scripts when moving to different forms. When this is used in a stand-alone mode( not under sahi), everything works fine. When attempting to test it under sahi, although most things work, the log always list errors such as:
undefined: SyntaxError: syntax error (https://management-ui/translation/jqueryValidation/en-gb:2)
No trace available
Or:
undefined: ReferenceError: JQUERY_VALIDATION_LANGUAGE_TRANSLATION is not defined (https://management-ui/assist/ajax/accounts/js/:3403)
No trace available
There are also objects which do NOT show when running under sahi. They are all there and functional when running stand-alone.
Is there a way to get sahi to ignore the translation scripts?
Best Answer
-
Hi TSheeley,
Please have a look at the "My AJAX pages do not render correctly when navigating through Sahi, or I get Javascript errors only when going through Sahi" topic on the following link.
http://sahi.co.in/w/trouble-shooting-sahi
Please let me know if it helps you out.
Answers
I have the latest version of sahi installed. The link above suggested:
"For example while using ExtJS, Add
.*callback=.*
at the end of sahi/userdata/config/exclude_inject.txt,
restart Sahi, clear browser cache, and it should fix problems with AJAX and extjs."
My exclude_inject.txt already has the following entries:
.*_sahi=false.*
.*arcwebservices.*
.*googleadservices.*
.*googleads.*
.*doubleclick.*
.*centigrade.*
.*save[-]state[.]php
.*get[-]state[.]php
.*callback=.*
The entry is already there, so, this has NOT made any difference. Any other suggestions?
I have figured this out now. I just needed to add the URLs that were mentioned in the error message to exclude_inject.txt. So, after .*callback=.*, I added:
*.management-ui/assist/ajax/.* and
*./management-ui/translation/.*
Now everything is working again.
Thanks,
T