Browse Source

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

Gordon Child 14 năm trước cách đây
mục cha
commit
463b1caf24
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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");