<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ruchi12377</author_name>
  <author_url>https://blog.hatena.ne.jp/ruchi12377/</author_url>
  <blog_title>るちtechブログ</blog_title>
  <blog_url>https://ruchi12377.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>備考 文章は人間が一生懸命タイピングしてます。 経緯 PlaywightでTurnstileを使った認証ページをテストする時に、Turnstileのiframe取得がうまくいかないことがありました。結果として、適当に数秒待つというコードを使ってテストの実行時間が無駄に伸びている時がありました。そこで、TurnstileがSuccesになるまで待機するというコードを書いたので共有します。 コード /** * Cloudflare Turnstileのiframeが出現するまで待機する関数 */ async function waitForTurnstileFrame( page: Page, t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fruchi12377.hatenablog.com%2Fentry%2F2026%2F01%2F28%2F121601&quot; title=&quot;PlaywrightでTurnstileの出現を待機する - るちtechブログ&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>2026-01-28 12:16:01</published>
  <title>PlaywrightでTurnstileの出現を待機する</title>
  <type>rich</type>
  <url>https://ruchi12377.hatenablog.com/entry/2026/01/28/121601</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
