【发布时间】:2017-12-18 11:23:41
【问题描述】:
大家好, 我正在使用 SELENIUM-IDE 为 Mozilla Firefox 运行一个脚本以实现网络自动化。 在脚本中,我正在搜索网页上的 “下一步” 按钮,并想知道它是否可用。如果是,请单击它并转到下一页,如果没有,请重新启动脚本。 在没有下一步按钮的情况下进入页面时,出现错误和
“测试用例失败”
我使用的命令:
<tr>
<td>storeElementPresent</td>
<td>css=a._3a693.coreSpriteRightPaginationArrow</td>
<td>bool</td>
</tr>
<tr>
<td>echo</td>
<td>'${bool}' </td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>'${bool}' == false</td>
<td>STARTSCRIPT</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=a._3a693.coreSpriteRightPaginationArrow</td>
<td></td>
</tr>
在我得到的日志结果中:
[info] Executing: | storeElementPresent | css=a._3a693.coreSpriteRightPaginationArrow | bool |
[info] Executing: | echo : 'true'
[info] Executing: | gotoIf | '${bool}' == false | STARTSCRIPT |
[info] Executing: | clickAndWait | css=a._3a693.coreSpriteRightPaginationArrow | |
[error] Element css=a._3a693.coreSpriteRightPaginationArrow not found
[info] Test case failed
各位有什么想法吗?
【问题讨论】:
标签: selenium selenium-webdriver selenium-ide