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.

Sahi is unable to open Popup window

lshankar_mcalshankar_mca Members
edited November -1 in Sahi - Open Source
Hi Narayan,

I am facing one issue regarding popup window.

Normally in my application if i click on "Submit" button it'll show one popup window.
When I run my testcases from sahi application is opening blank popup window and in the status bar its showing "Processing..." but its now showing the content in popup window. If i check manullay without proxy its opening popup window and showing the content.

Please help me.

Regards,
Shankar L

Comments

  • Hi lshankar_mca,

    It seems that Sahi's code is been injected in the pop-up window.

    Kindly follow the below steps:

    To turn on HTTP traffic logging:

    1) Open sahi/userdata/config/userdata.properties
    2) Add (or edit if already present)
    debug.traffic.log.unmodified=true
    debug.traffic.log.modified=true

    3) Restart Sahi.

    All traffic will be written to userdata/logs/traffic folder organized by date.

    NOTE: RESET TRAFFIC LOGGING TO FALSE once you are done, or else the logs will quickly fill your hard disk.

    Look at response.body_unmodified_xxx and response.body_modified_xxx to see if Sahi has injected code into the file. If yes, add the URL pattern to exclude_inject.txt

    Note that the pattern needs to be a proper regular expression which will match the whole url. If your url is http://myapp/myajaxrequests.jsp?action=add, your regex may look like .*myajaxrequests[.]jsp.*

    Let me know if this solves your issue.

    Regards
    Sumitra
  • Hi Sumitra,


    Thanks for your very fast reply.

    I followed your specifed steps and added the url pattern under the exculde_inject.txt file.

    Now its showing the contents in the popup page.
    But here is i am facing one problem. in the popup window i have one more button with the name "Submit". If i run my testcase from sahi its opening the popup window but not clicking on the "Submit" button inside the popup window.

    Please help me.

    Regards,
    Shankar L
  • globalwormingglobalworming Moderators
    edited November 2011
    Hi shankar

    did you used the popup API? http://sahi.co.in/w/miscellaneous-apis

    Regards Wormi
Sign In or Register to comment.