mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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
|
### param: BrowserContext.addInitScript.script
|
||||||
|
* langs: js
|
||||||
- `script` <[function]|[string]|[Object]>
|
- `script` <[function]|[string]|[Object]>
|
||||||
- `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
|
- `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
|
||||||
current working directory. Optional.
|
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.
|
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
|
### param: BrowserContext.addInitScript.arg
|
||||||
* langs: js
|
* langs: js
|
||||||
- `arg` <[Serializable]>
|
- `arg` <[Serializable]>
|
||||||
|
@ -357,6 +357,7 @@ The order of evaluation of multiple scripts installed via [`method: BrowserConte
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
### param: Page.addInitScript.script
|
### param: Page.addInitScript.script
|
||||||
|
* langs: js
|
||||||
- `script` <[function]|[string]|[Object]>
|
- `script` <[function]|[string]|[Object]>
|
||||||
- `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
|
- `path` <[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
|
||||||
current working directory. Optional.
|
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.
|
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
|
### param: Page.addInitScript.arg
|
||||||
* langs: js
|
* langs: js
|
||||||
- `arg` <[Serializable]>
|
- `arg` <[Serializable]>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user