Playwrightで任意のスクリプトを実行する
page.evaluateメソッドを使用して、ページ内で任意のスクリプトを実行することができる。
https://playwright.dev/docs/evaluating
jsx
const href = await page.evaluate(() => document.location.href);入力して検索を開始
page.evaluateメソッドを使用して、ページ内で任意のスクリプトを実行することができる。
https://playwright.dev/docs/evaluating
const href = await page.evaluate(() => document.location.href);