<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gregminster</author_name>
  <author_url>https://blog.hatena.ne.jp/gregminster/</author_url>
  <blog_title>約束の地</blog_title>
  <blog_url>https://obel.hatenablog.jp/</blog_url>
  <categories>
    <anon>ソフトウェア開発</anon>
  </categories>
  <description>結論 page.setViewportSize() を用いる。 具体例 公式ドキュメント に記載されているように page を以下のように作成したとします。 const page = await context.newPage() その後、以下のように setViewportSize メソッドで高さと幅を指定します。メソッド名が Puppeteer とは異なる*1ことには注意が必要です。 await page.setViewportSize({ width: 1920, height: 1080, }); 公式ドキュメント playwright.dev *1:Puppeteer の場合は se…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20210506%2F1620244800&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.user.blog.st-hatena.com/default_entry_og_image/459657/1568741889764668</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-06 05:00:00</published>
  <title>Playwright でブラウザのサイズを変える方法</title>
  <type>rich</type>
  <url>https://obel.hatenablog.jp/entry/20210506/1620244800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
