What is the proper way to retrieve the value of the field "value" from an input using Selenium IDE? This value can vary, so I need to be able to recover it for reuse. Here is my input field:
<input class="myClass" type="text" value="15" name="myName">
When attempting 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>
The output I receive is:
[info] echo: xpath("//input[@name='myName']").getAttribute("value");
Instead of:
15
Thank you for your assistance.