浏览代码

made small change to alert test to dismiss the alert before stopping the test

Gordon Child 14 年之前
父节点
当前提交
463b1caf24
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      t/01-driver-live.t

+ 1 - 0
t/01-driver-live.t

@@ -177,6 +177,7 @@ ALERT: {
         eval {$driver->dismiss_alert;};
         ok(!$@,"dismissed confirm");
         is($driver->get_alert_text,'false',"dismissed confirmed correct");
+        $driver->accept_alert;
         $driver->find_element("confirm",'id')->click;
         eval {$driver->accept_alert;};
         ok(!$@,"accepted confirm");