<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Playwright</anon>
    <anon>技術</anon>
    <anon>テスト</anon>
  </categories>
  <description>公式ヘルプに設定方法は載っているので、この記事で知れることは「Playwrightで動画を撮影できる」というのがこの記事の最大の目玉です。 環境 Playwright 1.12.1 対応 new_contextのパラメータにビデオ用のディレクトリを設定するだけです。new_contextしてから、closeするまでの処理を記録してくれます。 なお、Playwrightを動かす言語によって設定パラメータ名がかなり違うので、公式で再確認してください。 # 撮影開始 context = browser.new_context( record_video_dir=&quot;videos/&quot;, # ビデオの保存…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F10%2F18%2F120000&quot; title=&quot;Playwrightで動かしているシナリオを動画で記録する - きり丸の技術日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nainaistar/20210826/20210826224221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-18 12:00:00</published>
  <title>Playwrightで動かしているシナリオを動画で記録する</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/10/18/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
