key

How to Simulate ENTER key

Here is a way to simulate hitting the enter key after you have gained focus of the field:

<tr>
    <td>focus</td>
    <td>//div[@id='block-system-main']/div/div/table/tbody/tr/td[2]/div/div/ul/li[4]/input</td>
    <td></td>
</tr>
<tr>
    <td>sendKeys</td>
    <td>//div[@id='block-system-main']/div/div/table/tbody/tr/td[2]/div/div/ul/li[4]/input</td>
    <td><br /></td>
</tr>

Tags: