<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>am1tanaka</author_name>
  <author_url>https://blog.hatena.ne.jp/am1tanaka/</author_url>
  <blog_title>tanaka's Programming Memo</blog_title>
  <blog_url>https://am1tanaka.hatenablog.com/</blog_url>
  <categories>
    <anon>PHPUnit</anon>
    <anon>PHP</anon>
    <anon>Selenium</anon>
  </categories>
  <description>画面のレンダリングが成功しているかを確認するために、必要な場面でスクリーンショットを保存したい。 方法 $this-&gt;currentScreenshot()でPNG画像を文字列化したものが得られる。 $this-&gt;currentScreenshot()の文字列を、PHPのfile_put_contents()関数を使って保存する。 例 PHPUnit_Seleniumでページを表示して、カレントディレクトリにscshot.pngという名前で保存するテストコード。 &lt;?php class scshotTest extends PHPUnit_Extensions_Selenium2TestCas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fam1tanaka.hatenablog.com%2Fentry%2F2014%2F10%2F07%2F142431&quot; title=&quot;PHPUnit_Seleniumでスクリーンショット(動作確認) - tanaka&amp;#39;s Programming Memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-10-07 14:24:31</published>
  <title>PHPUnit_Seleniumでスクリーンショット(動作確認)</title>
  <type>rich</type>
  <url>https://am1tanaka.hatenablog.com/entry/2014/10/07/142431</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
