Selenium IDE 和处理条件 JavaScript 弹出



我想在Selenium IDE中处理JavaScript弹出窗口。我的Selenium IDE代码如下:

click   id=chk_MITS64906_ZTDLA15RT
click   id=AddDispute
select  id=cmbIssueCategory   label=Billing Support Documents Required
select  id=cmbIssue     label=Customer needs copy of Customer invoice
click   link=Submit
assertAlert     There is Open dispute on following InvoiceNumber=ZTDLA15RT for Category=Billing Support Documents Required

断言警报是我想要处理的弹出窗口。这取决于情况,如果有争议警报,否则不会。

如果我在没有争议的情况下保留断言警报,它将失败,因为警报将不存在。那么在这两种情况下我该如何处理它。

谢谢尼特

在Selenium IDE中,如果不使用插件,就无法处理条件语句。

对于您的情况,您可以选择Flow Control插件。阅读这篇文章,它会帮助你。

最新更新