0

我有一个删除并确认的链接,但我在 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>

看起来像:

在此处输入图像描述

4

1 回答 1

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>
于 2013-06-03T08:53:17.337 回答