tanaka's Programming Memo

プログラミングについてのメモ。

2014-10-07から1日間の記事一覧

PHPUnit_Seleniumでスクリーンショット(動作確認)

画面のレンダリングが成功しているかを確認するために、必要な場面でスクリーンショットを保存したい。 方法 $this->currentScreenshot()でPNG画像を文字列化したものが得られる。 $this->currentScreenshot()の文字列を、PHPのfile_put_contents()関数を使…