How to retrieve the field value "value" from input via the Selenium IDE (this value is variable so I want to recover its value for reuse) My input field:
<input class="myClass" type="text" value="15" name="myName">
When I tried the following code:
<tr>
<td>store</td>
<td>xpath("//input[@name='myName']").getAttribute("value");</td>
<td>x</td>
</tr>
<tr>
<td>echo</td>
<td>${x}</td>
<td></td>
</tr>
I have:
[info] echo: xpath("//input[@name='myName']").getAttribute("value");
instead of:
15
thanks for help