LoginSignup
2
0

More than 5 years have passed since last update.

PHPUnit-seleniumでalert処理をする

Last updated at Posted at 2015-04-07

PHPUnit-seleniumで自動テストを流している時に直面した問題が「alertが出ると処理の続きが出来ない」ということだった。
手動テストだったらOKボタンを押せば済むのに、自動テストだと出来ない!押せない!

そして、2〜3日以上にわたり迷走して出てきた解決策がコレである。
$this->acceptAlert();
コレだけ流せばOKだった。
まぁ、初期の頃だったので探し方とかが下手だったのもあり時間かかってしまいましたね。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0