0
<tr>
    <td>clickAt</td>
    <td>css=ul.token-input-list-facebook</td>
    <td></td>
</tr>
<tr>
    <td>setCursorPosition</td>
    <td>id=token-input-SongTags</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=token-input-SongTags</td>
    <td>n</td>
</tr>
<tr>
    <td>setCursorPosition</td>
    <td>id=token-input-SongTags</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=token-input-SongTags</td>
    <td></td>
</tr>

我尝试了上述步骤来自动化自动完成标签,但这不起作用,

有谁可以帮我离开这里吗?

4

1 回答 1

2
<tr>
    <td>clickAt</td>
    <td>css=(first click)</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=(second click)</td>
    <td>${tagname}</td>
</tr>
<tr>
    <td>typeKeys</td>
    <td>id=(second click)</td>
    <td>${tagname}</td>
</tr>
<tr>
    <td>pause</td>
    <td>3000</td>
    <td></td>
</tr>
<tr>
    <td>focus</td>
    <td>id=(second click)</td>
    <td></td>
</tr>
<tr>
    <td>keyDown</td>
    <td>id=(second click)</td>
    <td>\40</td>
</tr>
<tr>
    <td>keyDown</td>
    <td>id=(second click)</td>
    <td>\40</td>
</tr>
<tr>
    <td>keyDown</td>
    <td>id=(second click)</td>
    <td>\13</td>
</tr>
于 2012-07-18T12:37:22.193 回答