Skip to content

Commit

Permalink
docs: update init script type for java and C# (#5449)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 12, 2021
1 parent ac1599c commit 7e7d3db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/api/class-browsercontext.md
Expand Up @@ -153,13 +153,20 @@ 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.
- `content` <[string]> Raw script content. Optional.

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]>
Expand Down
7 changes: 7 additions & 0 deletions docs/src/api/class-page.md
Expand Up @@ -357,13 +357,20 @@ 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.
- `content` <[string]> Raw script content. Optional.

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]>
Expand Down

0 comments on commit 7e7d3db

Please sign in to comment.