docs: split ignoreDefaultArgs into 2 options for java (#5251)

This commit is contained in:
Yury Semikhatsky 2021-02-02 10:46:36 -08:00 committed by GitHub
parent 9e09bd369d
commit cee394d6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 20 deletions

View File

@ -129,11 +129,7 @@ Firefox or WebKit, use at your own risk.
Additional arguments to pass to the browser instance. The list of Chromium flags can be found
[here](http://peter.sh/experiments/chromium-command-line-switches/).
### option: BrowserType.launch.ignoreDefaultArgs
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
If `true`, Playwright does not pass its own configurations args and only uses the ones from [`option: args`]. If an
array is given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
### option: BrowserType.launch.ignoreDefaultArgs = %%-browser-option-ignoredefaultargs-%%
### option: BrowserType.launch.proxy = %%-browser-option-proxy-%%
@ -240,11 +236,7 @@ bundled Chromium, Firefox or WebKit, use at your own risk.
Additional arguments to pass to the browser instance. The list of Chromium flags can be found
[here](http://peter.sh/experiments/chromium-command-line-switches/).
### option: BrowserType.launchPersistentContext.ignoreDefaultArgs
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
If `true`, then do not use any of the default arguments. If an array is given, then filter out the given default
arguments. Dangerous option; use with care. Defaults to `false`.
### option: BrowserType.launchPersistentContext.ignoreDefaultArgs = %%-browser-option-ignoredefaultargs-%%
### option: BrowserType.launchPersistentContext.proxy = %%-browser-option-proxy-%%
@ -347,11 +339,7 @@ bundled Chromium, Firefox or WebKit, use at your own risk.
Additional arguments to pass to the browser instance. The list of Chromium flags can be found
[here](http://peter.sh/experiments/chromium-command-line-switches/).
### option: BrowserType.launchServer.ignoreDefaultArgs
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
If `true`, then do not use any of the default arguments. If an array is given, then filter out the given default
arguments. Dangerous option; use with care. Defaults to `false`.
### option: BrowserType.launchServer.ignoreDefaultArgs = %%-browser-option-ignoredefaultargs-%%
### option: BrowserType.launchServer.proxy = %%-browser-option-proxy-%%

View File

@ -1,4 +1,9 @@
## method: Playwright.close
* langs: java
Terminates this instance of Playwright, will also close all created browsers if they are still running.
Terminates this instance of Playwright, will also close all created browsers if they are still running.
### option: BrowserType.launch.ignoreDefaultArgs = %%-csharp-java-browser-option-ignoredefaultargs-%%
### option: BrowserType.launchPersistentContext.ignoreDefaultArgs = %%-csharp-java-browser-option-ignoredefaultargs-%%
### option: BrowserType.launch.ignoreAllDefaultArgs = %%-csharp-java-browser-option-ignorealldefaultargs-%%
### option: BrowserType.launchPersistentContext.ignoreAllDefaultArgs = %%-csharp-java-browser-option-ignorealldefaultargs-%%

View File

@ -98,6 +98,27 @@ Defaults to `'visible'`. Can be either:
* `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or `visibility:hidden`.
This is opposite to the `'visible'` option.
## browser-option-ignoredefaultargs
* langs: js, python
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
If `true`, Playwright does not pass its own configurations args and only uses the ones from [`option: args`]. If an
array is given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
## csharp-java-browser-option-ignoredefaultargs
* langs: csharp, java
- `ignoreDefaultArgs` <[Array]<[string]>>
If `true`, Playwright does not pass its own configurations args and only uses the ones from [`option: args`].
Dangerous option; use with care.
## csharp-java-browser-option-ignorealldefaultargs
* langs: csharp, java
- `ignoreAllDefaultArgs` <[boolean]>
If `true`, Playwright does not pass its own configurations args and only uses the ones from [`option: args`].
Dangerous option; use with care. Defaults to `false`.
## browser-option-proxy
- `proxy` <[Object]>
- `server` <[string]> Proxy to be used for all requests. HTTP and SOCKS proxies are supported, for example

8
types/types.d.ts vendored
View File

@ -6378,8 +6378,8 @@ export interface BrowserType<Browser> {
};
/**
* If `true`, then do not use any of the default arguments. If an array is given, then filter out the given default
* arguments. Dangerous option; use with care. Defaults to `false`.
* If `true`, Playwright does not pass its own configurations args and only uses the ones from `args`. If an array is
* given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
*/
ignoreDefaultArgs?: boolean|Array<string>;
@ -6644,8 +6644,8 @@ export interface BrowserType<Browser> {
headless?: boolean;
/**
* If `true`, then do not use any of the default arguments. If an array is given, then filter out the given default
* arguments. Dangerous option; use with care. Defaults to `false`.
* If `true`, Playwright does not pass its own configurations args and only uses the ones from `args`. If an array is
* given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
*/
ignoreDefaultArgs?: boolean|Array<string>;