In Selenium IDE btnDelete (Button) not found

邮差的信 提交于 2019-11-30 09:55:35

问题


Help URL : URL[1]: http://i.stack.imgur.com/s5ZnK.png' This URL also display a delete button code.

Selenium IDE: Command : Target clickAndWait : id=ctl00_Dialogproxy_deletenews_btnDelete

Log Table value: [info] Executing: |clickAndWait | id=ctl00_Dialogproxy_deletenews_btnDelete

[error] Element id=ctl00_Dialogproxy_deletenews_btnDelete not found

Actually i am not understanding what is the real issue because manually delete (button) functionality proper run but selenium IDE give the above error


回答1:


What is likely happening is the previous click element launches this "window" with the btnDelete element. So you need to either use a waitFor ( or worse, a pause (don't use pauses).

<tr>
<td>waitForElementPresent</td>
<td>id=ctl00_Dialogproxy_deletenews_btnDelete</td>
<td></td>
</tr>


来源:https://stackoverflow.com/questions/34788850/in-selenium-ide-btndelete-button-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!