docs: update init script type for java and C# (#5449)

This commit is contained in:
Yury Semikhatsky 2021-02-12 14:16:38 -08:00 committed by GitHub
parent ac1599cc2c
commit 7e7d3db96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -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]>

View File

@ -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]>