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.

window close and minimize

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

I have one link "click here" in one webpage (I am not able to post the
url link)when i am clicking here it opens a window.and i am closing and minimizing this
window .so I recorded in sahi tool.and i got this
_click(_span("click here"));
_click(_div("window_1331619278411_maximize"));
_click(_div("window_1331619278411_close"));

its able to click on the link"click here" and it opens a window..but i am not able to
click the close and minimize button.because it not able to identify the id "window_1331619278411"

so just let me know that how perform operation on the popupwindow.

OS=window server 2000
broswer name=mozila


Thanks

Comments

  • Is the id different each time?
    Try using

    _click(_span("click here"));
    _click(_div(/window_.*_maximize/));
    _click(_div(/window_.*_close/));
Sign In or Register to comment.