Ver Fonte

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

Gordon Child há 14 anos atrás
pai
commit
463b1caf24
1 ficheiros alterados com 1 adições e 0 exclusões
  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");