David
David

Reputation: 83

Selenium IDE: Clearing a text field

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

I have tried the sendKeys command with no luck.

Upvotes: 5

Views: 11469

Answers (2)

ahmad sazgar
ahmad sazgar

Reputation: 1

send key with${KEY_SHIFT}${KEY_HOME}${KEY_SHIFT}${KEY_DELETE} works

Upvotes: 0

DMart
DMart

Reputation: 2461

Use "type" and for the value leave blank.

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

Upvotes: 11

Related Questions