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.

Issues with _confirm (and _prompt)

qazwsx988qazwsx988 Members
edited November -1 in Sahi - Open Source
I am trying to set a variable by using a confirm, like the line below:
var $studyTitleBool = _confirm("OK = Designated Review; Cancel = Committee Review");

So this works fine if I click "OK" or "Cancel" within a few seconds after the confirm shows up; $studyTitleBool is set to true if "OK" is clicked and "false" if "Cancel" is clicked.

However, if I wait longer, then both "OK" and "Cancel" return null.

I have already tried the following fix, but it did not work:
sahi.co.in/forums/viewtopic.php?id=2090

The same issue happens with prompt. The value in prompt is only set to the variable if it is submitted in a few seconds.
Sign In or Register to comment.