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.

Answers
for (var $i=0;$i<=n;$i++){
_click(_button("btn["+$i+"]"));
}
If there are multiple buttons on the screen with the same id/name, the first DOM object of that button will be _button("btn[0]"), _button("btn") would only apply if it was the only DOM object of that name.
for (var $i=0;$i<=n;$i++){
_click(_button("btn["+$i+"]"));
}
If there are multiple buttons on the screen with the same id/name, the first DOM object of that button will be _button("btn[0]"), _button("btn") would only apply if it was the only DOM object of that name.
for (var $i=0;$i<=n;$i++){
_click(_button("btn["+$i+"]"));
}
If there are multiple buttons on the screen with the same id/name, the first DOM object of that button will be _button("btn[0]"), _button("btn") would only apply if it was the only DOM object of that name.