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.

Close alert message

gligogligo Members
edited January 2013 in Sahi Pro
Hello,
I have alert message, with only one OK button.
This alert cannot be catched by Sahi Hover, or Recording. It cannot be catched also by Firebug.
Is there way to close such a message?
_submit, _click, _expectConfirm dont work

Answers

  • gligogligo Members
    edited January 2013
    Strange...is there here anyone, who answer the questions?....Every time each my question has no answer...sadly

  • Hi gligo,

    Please take a look at this link: http://sahi.co.in/w/_lastalert
    Hope this helps you.. Good Luck..

    Thanks,
    Umashankar
  • _click(_link("Home"));
    _focusWindow();
    _wait(1000); // needed
    _mouseOver(_div("id12345"));
    _alert(_getText(_div("id12345-tooltip")));
    // press enter
    _typeKeyCodeNative(java.awt.event.KeyEvent.VK_ENTER);
    _wait(1000);
    _click(_link("Logout"));

    This code will help you! try it...
Sign In or Register to comment.