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.

Unable to automate pop-up

madanmadan Members
edited November -1 in Sahi - Open Source
Hi,

In my application i have a text box which will give pop-up when i enter value more than 100%, but sahi controller is not automating that pop-up.

Note: I am using IE 7 for this automation

Comments

  • Hi madan,

    Could you Ctrl + Hover on the popup and check if Sahi is able to identify the elements on the popup?

    Also, are you facing this issue on Firefox as well?

    Is it possible for you to share the URL or point us to an sample application?

    Regards
    Sumitra
  • Hi Sumitra,

    I tried doing Crtl+Hover, but sahi is not able to identify the elements on the popup, even with Mozilla also i am facing this issue

    Sorry, the URL cannot be accessed from outside.

    Regards,
    Madan
  • Hi Madan,

    Could you please open the controller from the popup and check if you are able to automate the popup.

    Regards
    Sumitra
  • Hi Sumitra,

    I am not able to open the controller on pop-up

    Regards,
    Madan
  • Hi Madan,

    Could you please send us the screenshot of the popup to support@sahi.co.in

    Also, if possible kindly send the source code of the popup.

    Regards
    Sumitra
  • we are doing POC for one of the customer and as per NDA we are not supposed share the screen snapshot.

    Problem statement:
    basically we are finding 2 issues

    Issue 1: there is HTML grid and below the grid we have four buttons (ilke Back, Download, Portfolio, Save) within a DIV. On top of HTML grid, they have placed text box to enter values into it which in turn updated into HTML Grid.

    We are able automate clicking "Save" button before editing the grid. Once grid is edited, we are not able to automate clicking on "Save" inspite of double clicking on other cells which in turn closes text boxes.

    Issue 2: Where as on click of "download", page is getting submitted even before / after editing grid. It looks tool is blocking the popup.

    pl find below code snippet, which i feel, would help you in providing solution


    <div id="content_buttons">
    <div class="confidential"> </div>
    <button id="butdisable" class="default" onclick="save();return false;">Save</button>
    <button onclick="Portfolio();return false;">Portfolio</button>
    <button onclick="export('');return false;">Download   <img height="16" width="16" src="/images/i_excel.gif">
    </button>
    <button id="back" onclick="backCancel('/Search', 'view');return false;">Back/Cancel</button>
    </div>
  • Hi Sumitra,

    Below mentioned is the java code recorded form sahi controller.


    //Save button working fine before entering values to Grid.
    browser.button("Save").click();

    //Here i am clicking the grid so that all the cells in the row will be enabled and we can enter values.

    browser.cell("0.00").click();

    //Here i am entering the values to text boxes
    browser.textbox("tempDollarAmount[3]").setValue("20.00");

    //Here again i am disabling the row which is enabled in from second line of code.
    browser.doubleClick(browser.textbox(11));

    //Here i am not able to click save button.
    browser.button("Save").click();

    The above code is working fine by using controller, but if the same code is running from ECLIPSE "Save" is not working.

    Regards,
    Madan
  • Hi Sumitra,

    Any hope for this type of Scenarios
  • Hi madan,

    Could you please check if you able to click on any other button on the popup through eclipse?

    Regards
    Sumitra
Sign In or Register to comment.