问题
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