【问题标题】:Selenium - [error] Error: There was an unexpected ConfirmationSelenium - [错误] 错误:有一个意外的确认
【发布时间】:2013-05-29 11:44:26
【问题描述】:

我有一个可以删除并确认的链接,但我在 SeleniumIDE 中不断收到错误

[error] There was an unexpected Confirmation
[Are you sure you want to delete all data and schedules for QA__run?]

我尝试在它之前添加chooseOkOnNextConfirmation,但没有任何区别,我仍然收到错误。

删除链接后面的 HTML 是:

<a class="deleteicon" title="Delete QA__run" rel="nofollow" 
data-method="delete" data-confirm="Are you sure?" href="/districts/83">
  <img src="/assets/icons/delete-a77f3c....png" alt="Delete"></img>
</a>

看起来像:

【问题讨论】:

    标签: selenium selenium-ide confirm


    【解决方案1】:

    在selenium ide中删除行脚本后,添加这个命令

    <tr>
        <td>storeConfirmation</td>
        <td>Are you sure you want to delete all data and schedules for QA__run?</td>
        <td></td>
    </tr>
    

    【讨论】:

      猜你喜欢
      • 2011-01-04
      • 2011-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多