mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
docs: update init script type for java and C# (#5449)
This commit is contained in:
parent
ac1599cc2c
commit
7e7d3db96d
@ -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]>
|
||||
|
@ -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]>
|
||||
|
Loading…
Reference in New Issue
Block a user