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.
Using Sahi on Frames (Same Domain)
I'm attempting to use Sahi on a site that has three total frames, all originating from the same domain. When I open the controller, I can access any link that is in the frame that opened it, but when attempting to select something outside of that frame, it fails. I've tried using the alternative (top.Navi.document.links[0]) and it doesn't seem to work, either.
I've even tried to start the listener window before the frames (like through a search page then onto the page) but it defaults to the first frame listed in the source and fails to be able to affect any of the other frames.
Also, sometimes I get this error when stopping the recording.
Typeerror: top.window.opener is "Null"
Is there something I'm doing wrong or is this a limitation? I know there's a multi-domain frameset limitation, but all the frames' source comes from the same exact domain, they're only called using a relative path. (IE- src="index.html")
I've even tried to start the listener window before the frames (like through a search page then onto the page) but it defaults to the first frame listed in the source and fails to be able to affect any of the other frames.
Also, sometimes I get this error when stopping the recording.
Typeerror: top.window.opener is "Null"
Is there something I'm doing wrong or is this a limitation? I know there's a multi-domain frameset limitation, but all the frames' source comes from the same exact domain, they're only called using a relative path. (IE- src="index.html")
Tagged:
Comments
Which browser are you using and which version of Sahi?
Can you try to see if Sahi works on this page with frames? http://sahi.co.in/demo/framesTest.htm
The only reason I can think of for the failure is that there is a document.domain attribute set on the pages. Is that so?
Would it be possible for me to have a look at the pages? You can email me at narayan@sahi.co.in
Regards,
Narayan
I just tested it again and it works perfectly now on both the test page and the page I was trying to get to work. I don't know what changed other than I restarted the proxy.
Thanks for your help.