Selenium IDE: Clearing a text field

David picture David · May 22, 2015 · Viewed 8.1k times · Source

I need to know how to clear a text field in Selenium IDE.

I have tried the sendKeys command with no luck.

Answer

DMart picture DMart · May 22, 2015

Use "type" and for the value leave blank.

<tr>
<td>type</td>
<td>id=someID</td>
<td></td>
</tr>