18 January 2026:


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.

Cannot handle pages with other pages from different domains in iframes

TSheeleyTSheeley Members
edited November -1 in Sahi - Open Source
Linux Ubuntu Debian

Firefox 8.0

sahi.20120109 ??

I have been having a problem and I found this answer on the internet at:

http://www.darknet.org.uk/2010/03/sahi-web-automation-application-security-testing-tool/

Limitations

Framesets/pages with frames/iframes loading pages from multiple domains is not supported. Sahi cannot handle pages which have other pages from different domains embedded in them using iframes or frames. So you cannot have a page from google.com having an iframe with a page from yahoo.com. Note that this is not the same as switching between domains, where you navigate from a google.com page to a yahoo.com page, which will work in Sahi.

This seems to be with regards to an older version of Sahi.

Is this still true? If not, how can I work with pages which have other pages from different domains embedded in them using iframes? Our web page has embedded advertisements in an iframe. If I just open the page with firefox (without the sahi server), everything is fine. Within Sahi, sometimes the adverts appear and sometimes they don't, when they don't, I get the above error and the script fails. At the moment, my script navigates to the main page, waits for a while, then eventually fails with:

Window/Domain not found: popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=feeds.<domainName>.com

Could it be that Sahi does not believe the page has completely loaded? Is there a way I can get Sahi to ignore it's existence and just carry on with the tests? Please help.

Comments

  • Hi TSheeley,

    Sahi works well with frames and iframes.

    Sahi can handle pages which have other pages from different domains embedded in them using iframes or frames. If you have a page from google.com having an iframe with a page from yahoo.com, Sahi will prefix the domain correctly to the recorded step.

    Could you please have a look at :

    http://sahi.co.in/w/trouble-shooting-sahi

    Regards
    Sumitra
  • Hello Sumitra,

    I have had a look at that page - quite a few times. But I can't find anything there that helps. Could you please direct me to the information that will help my situation? Our web page has embedded advertisements in an iframe.

    my script navigates to the main page, waits for a while, then eventually fails with:

    Window/Domain not found: popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=feeds.<domainName>.com
  • Ok, I am still having difficulties with this, but I THINK I may an the answer. I just unzipped sahi to another location to basically start from a "Clean" installation. I didn't alter either the userdata.properties or the sahi.properties files. I didn't make any browser changes. But now, my scripts run without the external domain errors. (Locally - they still don't run on the touchscreen system).

    Would you be able to take me through the configuration? All these proxy settings etc are really confusing me.

    TSheeley
Sign In or Register to comment.