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.
to check the values that are read
i had a task that need me to use _readCSVFIle and then to check the values that are read. i hope anyone can help me because i really new in this field and a lot of thing that i cant understand.here is my script
var $userinfo = _readCSVFile("csv.csv");
var $userName = $userinfo[0][0];
_navigateTo("http://sahi.co.in/demo/training/"
;
_setValue(_textbox("userName"), "test");
_setValue(_password("password"), "secret");
takeSnapShot("d:/snapshot3"); //taking screensnapshot
_wait(1000); // Will stop execution for a second
_click(_submit("Login"));
_setValue(_textbox("q"), "2");
_setValue(_textbox("q[1]"), "3");
_setValue(_textbox("q[2]"), "1");
takeSnapShot("d:/snapshot4");
_wait(1000);
_click(_button("Add"));
_click(_button("Logout"));
var $userinfo = _readCSVFile("csv.csv");
var $userName = $userinfo[0][0];
_navigateTo("http://sahi.co.in/demo/training/"
_setValue(_textbox("userName"), "test");
_setValue(_password("password"), "secret");
takeSnapShot("d:/snapshot3"); //taking screensnapshot
_wait(1000); // Will stop execution for a second
_click(_submit("Login"));
_setValue(_textbox("q"), "2");
_setValue(_textbox("q[1]"), "3");
_setValue(_textbox("q[2]"), "1");
takeSnapShot("d:/snapshot4");
_wait(1000);
_click(_button("Add"));
_click(_button("Logout"));