bucle de selenio a través de variables de matriz

en selenio ide, he construido un caso de prueba, en el que una variable de matriz almacena los valores. He utilizado el bucle while para imprimir esas variables de matriz.

Aquí he usado "getEval | myarray [0]" para imprimir el primer valor que es 'postgresql'. pero el valor no está listado. no se produce ningún error.

[info] Executing: |getEval | myarray = new Array('postgresql','mysql'); | |
[info] script is: myarray = new Array('postgresql','mysql');
[info] Executing: |getEval | index=0; | |
[info] script is: index=0;
[info] Executing: |while | index < myarray.length; | |
[info] Executing: |getEval | myarray[0] | mynewvalue |
[info] script is: myarray[0]
[info] Executing: |echo | ${mynewvalue} | |
[info] echo: ${mynewvalue}
[info] Executing: |getEval | index++; | |
[info] script is: index++;
[info] Executing: |endWhile | | |
[info] Executing: |while | index < myarray.length; | |
[info] Executing: |getEval | myarray[0] | mynewvalue |
[info] script is: myarray[0]
[info] Executing: |echo | ${mynewvalue} | |
[info] echo: ${mynewvalue}
[info] Executing: |getEval | index++; | |
[info] script is: index++;
[info] Executing: |endWhile | | |
[info] Executing: |while | index < myarray.length; | | 

ahora nuevamente en el mismo caso de prueba, cambié "getEval | myarray [0]" por "getEval | myarray [$ {index}] para enumerar los valores de la matriz por índice de bucle.

Ahora estoy recibiendo el siguiente error:

[info] Executing: |getEval | myarray = new Array('postgresql','mysql'); | |
[info] script is: myarray = new Array('postgresql','mysql');
[info] Executing: |getEval | index=0; | |
[info] script is: index=0;
[info] Executing: |while | index < myarray.length; | |
[info] Executing: |getEval | myarray[${index}] | mynewvalue |
[info] script is: myarray[${index}]
[error] Threw an exception: missing ] in index expression 

todo lo que necesito es echo para imprimir "postgresql" y "mysql" son nuevas líneas separadas. Soy muy nuevo en selenio por favor ayúdame a resolver esto.

Respuestas a la pregunta(1)

Su respuesta a la pregunta