尝试 Selenium IDE 2.2。我遇到了一个间歇性错误,我尝试降低 IDE 的速度,但它仍然会发生。我可以使用用户名和密码登录网站,但无法退出。
<tr>
<td>open</td>
<td>/portal/Welcome.do</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=login</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=username</td>
<td>sub3@gmail.com</td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>sub3</td>
</tr>
<tr>
<td>click</td>
<td>link=SIGN IN</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=a.signout</td>
<td></td>
</tr>
输出:
[info] Executing: |open | /portal/Welcome.do | |
[info] Executing: |click | id=login | |
[info] Executing: |type | name=username | sub3@gmail.com |
[info] Executing: |type | name=password | sub3 |
[info] Executing: |click | link=SIGN IN | |
[info] Executing: |clickAndWait | css=a.signout | |
**[error] Element css=a.signout not found**