Skip to content

Commit

Permalink
docs: split ignoreDefaultArgs into 2 options for java (#5251)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 2, 2021
1 parent 9e09bd3 commit cee394d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
18 changes: 3 additions & 15 deletions docs/src/api/class-browsertype.md
Expand Up @@ -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-%%

Expand Down Expand Up @@ -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-%%

Expand Down Expand Up @@ -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-%%

Expand Down
7 changes: 6 additions & 1 deletion docs/src/api/java.md
@@ -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-%%
21 changes: 21 additions & 0 deletions docs/src/api/params.md
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions types/types.d.ts
Expand Up @@ -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>;

Expand Down Expand Up @@ -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>;

Expand Down

0 comments on commit cee394d

Please sign in to comment.