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.
Problems With Frames
Hi ,
I am using Sahi to test one application which loads 7-9 pages (frames)before showing home page..Home page of application has fields such as username,password n submit buttons,logos etc..
While testing I got a script-error while loading those pages .. it gave a pop-up "Java script error! _Sahi is unknown variable"..I can't remember exact message.. I was using IE7 for testing..
One more problem,I will explain this with an example..
Suppose I typed something in username field .The moment I shift to next field i.e. password... the status bar reports an error.. and when I stop recording I get a script file with size 0kb..
So i wanted to ask, is there any issue in using Sahi for multiple frames?Did you guys come across with such problems before? If yes what are the workarounds I need to do?
( I could test another application which did not have Frames in it without any problem...)
I am using Sahi to test one application which loads 7-9 pages (frames)before showing home page..Home page of application has fields such as username,password n submit buttons,logos etc..
While testing I got a script-error while loading those pages .. it gave a pop-up "Java script error! _Sahi is unknown variable"..I can't remember exact message.. I was using IE7 for testing..
One more problem,I will explain this with an example..
Suppose I typed something in username field .The moment I shift to next field i.e. password... the status bar reports an error.. and when I stop recording I get a script file with size 0kb..
So i wanted to ask, is there any issue in using Sahi for multiple frames?Did you guys come across with such problems before? If yes what are the workarounds I need to do?
( I could test another application which did not have Frames in it without any problem...)
This discussion has been closed.
Comments
Could you check after clearing your browser cache? It could be that some of the iframes are being picked from cache and do not have Sahi's code injected in them.
Sahi supports frames and iframes well. Could you please check on http://sahi.co.in/demo/framesTest.htm ?
What version of Sahi are you using? Consider taking the latest version.
Regards,
Narayan
Thanks for your reply..
It helped solving that problem..
However, I came across another one yesterday..
When I tried to open the home-page of the site which I was trying to test, it took a lot time.. Almost 25 mins.. I tried to do same on 4-5 machines but same..
And w/o sahi - proxy, those pages were opening within 10 seconds..
And this problem was not there when I tested there 2 days back.. I mean then the page could load in 5-6 seconds..
What might be reason for this?
I forgot to mention, I am using Sahi's build of 22 september 2009..Should I switch to the one of 23october?
Well its a local application.. I am testing it on a software made for banking application.. I doubt if they could make it public to test ..
Anyways..It has been developed in asp.net and uses frames extensively..
I will use latest version of Sahi.. n try again..
Apart from that could you hint where can I be going wrong?
It is surely because of the application going through the proxy (not really injection though). What ever the reason, 25 minutes is really really high. It may take twice or thrice the amount of normal load time in some cases, but it should not be more than that. Try the latest build and check if the caching has improved performance. If not, we will have to collaborate to figure out what is happening.
Regards,
Narayan
I tried with the latest build of 23-oct-2009.. And it worked..
Thanks a lot for ur help.
Ending this thread here... thanks..