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.
THat is problem
how to call a varible in sahi. in loop like this
for (var $i=2; $i<5; $i++)
{
}
the values of i is numeric
_click(_link("$i"));
===============
_click(_link("2"));
for (var $i=2; $i<5; $i++)
{
}
the values of i is numeric
_click(_link("$i"));
===============
_click(_link("2"));
Comments
for (var $i=0 ; $i<$linkName.length ; $i++) {
_debug ( $linkName[$i] ) ;
_highlight(_link( $linkName[$i] ));
_click(_link( $linkName[$i] ));
}
This works for me - Hope that helps.
Try this,
for (var $i=2; $i<5; $i++)
{
_click(_link("" + $i));
}