Selenium IDE Javascript creating array worked until restart? -
i created , populated array in selenium ide, used while.
<tr> <td>storeeval</td> <td>new array ('asd','hot dog')</td> <td>names</td> </tr>
i got number of items of array way:
<tr> <td>storeeval</td> <td>names.length</td> <td>length</td> </tr>
after restarted selenium ide, when try number of items, or echo item array, following error:
[error] threw exception: names not defined
why happen?
in addition, while still working, had 4 items in array. added more when tried echo of new ones, didnt work.
try this. <tr> <td>storeeval</td> <td>new array ('asd','hot dog')</td> <td>names</td> </tr> <tr> <td>storeeval</td> <td>javascript{storedvars.names.length}</td> <td>length</td> </tr> <tr> <td>echo</td> <td>${length}</td> <td></td> </tr> thank you.
Comments
Post a Comment