18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
_confirm with a default answer after x milliseconds
Hi,
Is there a simple way to implement a function like
- user's answer to the confirm $message
- $default answer after $milliseconds (the latter supposed to be less than 150000)
?
Is there a simple way to implement a function like
_confirmDelay($message, $milliseconds, $default)
that would return what happens first of :- user's answer to the confirm $message
- $default answer after $milliseconds (the latter supposed to be less than 150000)
?
Comments
First of all there is no API like _confirmDelay().
You can try using this:
Regards
Sumitra
From reading your answer, I do not see where is the _confirm.
What I ment is
- if the user answers to _confirm within the delay, the script continues immediatly with the user's answer
- if the user did not answer to _confirm after the delay, the script continues with the default answer
It looks like the solution you provided is forced to wait for 10 sec.