From 7e7d3db96d6add9bbe2783d6810c823ffd64fc13 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 12 Feb 2021 14:16:38 -0800 Subject: [PATCH] docs: update init script type for java and C# (#5449) --- docs/src/api/class-browsercontext.md | 7 +++++++ docs/src/api/class-page.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 7d6b2fead0..839b8de1e4 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -153,6 +153,7 @@ The order of evaluation of multiple scripts installed via [`method: BrowserConte ::: ### param: BrowserContext.addInitScript.script +* langs: js - `script` <[function]|[string]|[Object]> - `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working directory. Optional. @@ -160,6 +161,12 @@ The order of evaluation of multiple scripts installed via [`method: BrowserConte Script to be evaluated in all pages in the browser context. +### param: BrowserContext.addInitScript.script +* langs: csharp, java +- `script` <[string]|[path]> + +Script to be evaluated in all pages in the browser context. + ### param: BrowserContext.addInitScript.arg * langs: js - `arg` <[Serializable]> diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 10e2950e2b..11fa11342a 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -357,6 +357,7 @@ The order of evaluation of multiple scripts installed via [`method: BrowserConte ::: ### param: Page.addInitScript.script +* langs: js - `script` <[function]|[string]|[Object]> - `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working directory. Optional. @@ -364,6 +365,12 @@ The order of evaluation of multiple scripts installed via [`method: BrowserConte Script to be evaluated in the page. +### param: Page.addInitScript.script +* langs: csharp, java +- `script` <[string]|[path]> + +Script to be evaluated in all pages in the browser context. + ### param: Page.addInitScript.arg * langs: js - `arg` <[Serializable]>