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.
why such an error in IE and not firefox?
Hi all,
I have encountered a weird problem in Ie and firefox.
I have the following function:
function AsvpWaitForPage(){
var $TimerDuration = 45000;
_wait($TimerDuration, _spandiv(/.*Confirmation.*/) != null);
}
I tested my script in playback mode with firefox and it worked fine.
But if I replay the script in IE, when I press PLAY, it display success immediatly.
I have discovered/learned that when sahi controller displays immediatly "success" without executing the scripts then it means there is an error somewhere.
so I commented out the _wait line and the script worked.
Any idea why it is ok in firefox but not IE
I created a test suite and tested it with ant + IE and it failed and generated the following error in the log file:
_wait(45000, "_spandiv(/.*Confirmation.*/) != null");
_sahi.saveCondition(_spandiv(/.*Confirmation.*/) == null); TypeError: 'undefined' is null or not an object
No trace available
Stopping script
This is how I discovered the error.
Any help will be much appreciated as I need to be able to run the tests on both Ie an firefox
Thanks
I have encountered a weird problem in Ie and firefox.
I have the following function:
function AsvpWaitForPage(){
var $TimerDuration = 45000;
_wait($TimerDuration, _spandiv(/.*Confirmation.*/) != null);
}
I tested my script in playback mode with firefox and it worked fine.
But if I replay the script in IE, when I press PLAY, it display success immediatly.
I have discovered/learned that when sahi controller displays immediatly "success" without executing the scripts then it means there is an error somewhere.
so I commented out the _wait line and the script worked.
Any idea why it is ok in firefox but not IE
I created a test suite and tested it with ant + IE and it failed and generated the following error in the log file:
_wait(45000, "_spandiv(/.*Confirmation.*/) != null");
_sahi.saveCondition(_spandiv(/.*Confirmation.*/) == null); TypeError: 'undefined' is null or not an object
No trace available
Stopping script
This is how I discovered the error.
Any help will be much appreciated as I need to be able to run the tests on both Ie an firefox
Thanks
Comments
Just a short reply to confirm the following:
function AsvpWaitForPage(){
var $TimerDuration = 45000;
_wait($TimerDuration, _spandiv(/.*Confirmation.*/) != null);
}
does not work with IE 7 but with firefox. It will not even allow the script to playback
If I modify the code this way:
function AsvpWaitForPage(){
var $TimerDuration = 45000;
_wait($TimerDuration, _condition(_spandiv(/.*Confirmation.*/) != null));
}
It allows the script to playback in both IE and FF but when the wait function is called it just wait for 45s even if the page with the Confirmation span has been loaded.
In the first case scenario with FF, it work beautifully.
Any idea on how to fix that in IE?