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.
how to use arrarys in Sahi
Hi friends,
Was trying to parameterize the data for username and password fields of login form, but was struck with using arrays. Can anyone help me with parameterizing using arrays. And where can i find a complete tutorial of Sahi.
Regards,
Hari...
Was trying to parameterize the data for username and password fields of login form, but was struck with using arrays. Can anyone help me with parameterizing using arrays. And where can i find a complete tutorial of Sahi.
Regards,
Hari...
This discussion has been closed.
Comments
Here is simple example which helps you to work with arrays:
var $username = ["username1","username2","username3"];
var $password = ["password1","password2","password3"];
_setValue(_textbox("username"),$username[index]);
_setValue(_textbox("password"),$password[index]);
_click(_submit("Login"));
The following URLs will help you to learn Sahi scripts:
http://sahi.co.in/w/sahi-scripting-basics
http://sahi.co.in/w/sahi-script-and-javascript
Let me know if this helps you.
Regards
Sumitra
Thanks a lot for your reply, that was very usefull.
Regards,
Hari...