소스 검색

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");