From 8f11237a673e565550945020ef190f1d7376f898 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:09:57 +0200 Subject: [PATCH] chore: migrate `addScriptTag` (#8878) --- docs/api/puppeteer.frame.addscripttag.md | 2 +- ...peteer.frameaddscripttagoptions.content.md | 2 +- .../puppeteer.frameaddscripttagoptions.id.md | 15 +++ .../api/puppeteer.frameaddscripttagoptions.md | 13 +- ...puppeteer.frameaddscripttagoptions.path.md | 2 +- ...puppeteer.frameaddscripttagoptions.type.md | 2 +- .../puppeteer.frameaddscripttagoptions.url.md | 2 +- docs/api/puppeteer.page.addscripttag.md | 18 ++- src/common/Frame.ts | 82 +++++++++++-- src/common/IsolatedWorld.ts | 111 +----------------- src/common/Page.ts | 33 +++--- test/src/page.spec.ts | 6 +- 12 files changed, 132 insertions(+), 156 deletions(-) create mode 100644 docs/api/puppeteer.frameaddscripttagoptions.id.md diff --git a/docs/api/puppeteer.frame.addscripttag.md b/docs/api/puppeteer.frame.addscripttag.md index 67e2638507e..c84a7c922ad 100644 --- a/docs/api/puppeteer.frame.addscripttag.md +++ b/docs/api/puppeteer.frame.addscripttag.md @@ -26,4 +26,4 @@ class Frame { Promise<[ElementHandle](./puppeteer.elementhandle.md)<HTMLScriptElement>> -a promise that resolves to the added tag when the script's `onload` event fires or when the script content was injected into the frame. +An [element handle](./puppeteer.elementhandle.md) to the injected `