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.

Popups not recognized during recording in IE7

sanket.pattekarsanket.pattekar Members
edited November -1 in Sahi - Open Source
Hi

We are using sahi for automating an AJAX site. The recording works fine for all other elements, but not for popup. One of the link opens a popup, where we enter some values and then return to the main window. The problem is that the events on the popup are not identified by sahi recorder.

Following is what is recorded by sahi
_click(_link("Log On"));
_click(_link("SALESPRO - Sales Professional"));
_click(_span("Appointment"));
_click(_span("Appointment"));
_click(_span("Contact"));

Following is what is SHOULD have been recorded by sahi
_click(_link("Log On"));
_click(_link("Sales Professional"));
_click(_span("Appointment"));
_popup("Select Transaction Type")._click(_span("Appointment"));
_click(_span("Contact"));

What I have found is that isPopup() method returns false always. That is the reason why the _popup is not there.

Any ideas how we can get this correctly recorded.

Browser: IE7
Sahi: 3.5

~Sanket

Comments

  • TheeranTheeran Members
    Hi Sanket,

    Please go through the following link,

    http://sahi.co.in/forums/viewtopic.php?id=2435

    This might help you.

    Regards,
    Theeran.
  • Hi Theeran

    The suggested link doesnot provide the solution. We are stuck with this issue as we are not able to do a playback.

    Kindly suggest how we can caputure the type popup with sahi. Do let me know if you need any more inputs

    ~Sanket
  • TheeranTheeran Members
    Hi Sanket,

    Were you able to record the elements from the popup window with Sahi?

    Try executing the steps manually and when the popup opens, do a Ctrl + hover on any of the elements.

    Check if the elements are being recognized by the controller. If yes, is it also prefixed with _popup (Check the prefix field in the controller)?

    If you're not able to perform these actions, can you point us to your application (if it is available online)?

    Thanks,
    Theeran.
  • Hi Theeran

    The elements are not recognized by the controller, i.e. I do not get these _popup("Select Transaction Type")._click(_span("Appointment")); in the controller.

    I did check the concat.js and isPopup() method returns false.

    The application is intranet only and not available online.

    ~Sanket
Sign In or Register to comment.