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 using sahi

Hi

windows popup dialog ,unable to automate using sahi
"This page is asking you to confirm that you want to leave - data you have entered may not be saved."
with two buttons "Leave this page" and "Stay on this page".

i tried mentioned in "http://sahipro.com/alldocs/v5.1.2/faq/misc-questions.html";

and also

_sahi._typeNativeKeyCode(java.awt.event.KeyEvent.VK_SPACE);

in Sahi 6 version,

http://sahipro.com/alldocs/v6.0.0/sahi-apis/action-apis.html#_clickNative

how to use api in my scenario ,

in my application , after click on exit button, the popup will appear

_click(_button(" x-btn-text msai_exit_icon"));
_clickNative(_button(" x-btn-text msai_exit_icon"),["SPACE"]);

i tried like this no use.


Sign In or Register to comment.