Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

Problem with using for loop

sahirsahir Members
edited December 2014 in Sahi - Open Source
Hi,

I tried to use this code:
for (var $i = 0; $i < $kost.length; $i++)
{
for (var $j = 0; $j <= 2; $j + 2)
{
_alert($j);
var $x = $j + 1;
if (_isVisible(_div("/" + $kost[$i][$j] + " " + $kost[$i][$x] + "/")) === true)
{
_click(_link("/Löschen/", _near(_div("/" + $kost[$i][$j] + " " + $kost[$i][$x] + "/"))));
_assertNotTrue(_isVisible(_div("/" + $kost[$i][$j] + " " + $kost[$i][$x] + "/")));
}
}
}

But Sahi won't start the code after the first _alert, it just keeps endlessly executing the _alert.
Thanks

Answers

Sign In or Register to comment.