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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -