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.
How to recognise application window after opening from web portal?
Here is my scenario. I was logging into a portal application and from there opening another application in which i need to test. I have used a sahi script directly login to the application and verifying the functionality successfully. Now our company wants us to test the application by logging into a portal with SSO and from here navigate (by clicking a link) to the the respective application to test its functionality. Logging into portal and then opening the application is working fine. The application is opened in a new window. But here another controller is opening while navigating the application in new window. My script is failing here to recognize the application window. Can someone help me to overcome through this issue?I can't use _popup( ) since hte second window is not a popup window. I appreciate for any help that could resolve the issue. Thanks in advance.
Answers
In Firefox two sahi controller windows are opening with the same domain name and doesn't recognize the new window but in IE only one controller opens and doesn't recognize the second window.
The second window doesn't have a name nor title. I have tried with_selectWindow("my domain name") and _selectDomain("my domain name"). But none of them works for me. I have seen many posts with the similar popup issues but none of them gives the solution for this kind of situation. Please help me with the issue. I appreciate any help with the issue. Thanks in advance.
here is the code snippet:
_click(_link("Log In"));
_setValue(_textbox("wps.portlets.userid"), "username");
_setValue(_password("password"), "password");
_click(_submit("Log in"));
_mouseOver(_div("Applications"));
_click(_link("VA"));
_wait(100);
_selectWindow("http://atm.am.lp.netxxxx:1111/va/security/home.lp"
_highlight(_listItem("Search"));
Below is the error message: Error in script: _popup("http://atm.am.leaseplancorp.net:9080/va/security/home.lp"
Window/Domain not found: popupNameFromStep=http://atm.am.leaseplancorp.net:9080/va/security/home.lp; derivedName=; windowName=; windowTitle=; wasOpened=1; domain=
At the end of the the script i was closing the current window (2nd window) and then going back to the previous window and logout from the portal application. The 2nd window closed successfully but since FF opening two controllers the script is still playing from the 2nd controller and not able to recognize the 1st window. How can i close the 2nd controller, so that the remaining script can be run from the 1st controller (this controlleer opened for the 1st window) to logout of the application. Could someone from Sahi team respond immediately for my issues? I have been positing ny issues here but not getting back any responses. I was wondering whether anyone from Sahi team is looking at the customer issues? Thanks in advance.