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.

Is _confirm working ?

PachatPachat Members
edited January 2011 in Sahi - Open Source
Why does Sahi raises a "--Stopped Playback: FAILURE--" on the first line ?
if (_confirm('OK ?'))
    _alert('OK');
else
    _alert('Too bad');

Could you give an example of the use of _confirm ?

BTW, the TODO.txt says "Rectify documentation for _prompt _confirm"
So please an example would be of great help

I found that _confirm is not even parsed. The parsed script gives :
_sahi.schedule("_sahi._alert('That is OK');", "E:\\sahi\\userdata\\scripts\\_\\test.sah&n=1");
_confirm('Is _confirm working ?');
Sign In or Register to comment.