Explorar o código

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

Gordon Child %!s(int64=14) %!d(string=hai) anos
pai
achega
463b1caf24
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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");