Here is a simple work around using regex which I tested myself. You may change selectionNo as you wish.
min selectionNo = 0, max selectionNo = <number of labels selected> - 1
Please define selectLocator accordingly.
<tr>
<td>store</td>
<td>2</td>
<td>selectionNo</td>
</tr>
<tr>
<td>storeSelectedLabels</td>
<td>${selectLocator}</td>
<td>selectedArray</td>
</tr>
<tr>
<td>storeEval</td>
<td>"${selectedArray}".match("([^,]+,){${selectionNo}}([^,]+)")[2]</td>
<td>secondLabel</td>
</tr>
<tr>
<td>echo</td>
<td>${secondLabel}</td>
<td></td>
</tr>
Hope this will be helpful.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6839&messageID=19746#19746---------------------------------------------------------------------
To unsubscribe, e-mail:
selenium-ide-users-unsubscribe@...
For additional commands, e-mail:
selenium-ide-users-help@...