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