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.
input popup possible?
I would like to have my script start by giving the person running the script a popup asking for things like username and password, then pass those answers back into the script to be variables. Is this possible in Sahi?
Comments
var $name=prompt("Please enter your name","John Smith");
document.write("Hello " + $name);
why to use javascript prompt(),Sahi has it own API _prompt to perform such functionalities.you can use the following script to get popup for username and password and use it as variables into script.
This might help you.
Regards
Theeran.
Thanks! Only problem here is a & b are returned as null.