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.

Not able to record now new opened page

chopademschopadems Members
edited February 2009 in Sahi - Open Source
Hi

I'm very new to Automationa and as well to Sahi. I'm recording a script in which I'm clicking on a link which opens a new page and I have to perform some actions on that page but I'm not able to do so as the actions are not recorded on new page.

can some one please help me in this regard?

Regards;
Manish

Comments

  • Hi Manish,

    For popups the syntax would be like this:
    Say, you want to click a link on the required popup:

    _popup("Popup Window Name")._click(_link("Link Name"));

    Regards,
    Pankaj.
  • Thanks Pankaj,

    Actually the problem I'm facing is when I'm clicking on a link it opens a new page and I have to click on a link present on that page, but when ever it clicks on the first page linnk it opens a new controller window with new the new page and executions halts there.
    Is there any work around there?
    The same thing happens while recording only, when I start recording a script and new page appears along with new controller window.
    Please guideme in this.

    Regards,
    Manish
  • chopademschopadems Members
    edited February 2009
    Also I forgot to mention above that I'm working behind a firewall.

    Thanks,
    Manish
  • Hi Manish,

    That happens (opening of a second instance of controller window) when you navigate from one domain to another. I dont have much idea how to tackle that. :(
    I think Narayan can suggest something over that. Lets see what he has to say.

    Regards,
    Pankaj.
  • narayannarayan Administrators
    Manish,

    Sahi opens a new Controller if the moved to page is from a different domain. When this happens, most of the time, you can just close both the controllers and open a new one by doing a CTRL-ALT-DblClick on the page you are currently working on. This should not have any effect on your recording. Even during playback, you can ignore the Controller opening and just look at the logs to see if everything worked properly or not.

    I am working on having just one controller at a time.

    Regards,
    Narayan
Sign In or Register to comment.