docs(java): setDefaultTimeout -> setDefaultAssertionTimeout (#16264)
This commit is contained in:
parent
250d5f8b9a
commit
d3d1287e4b
|
|
@ -143,17 +143,17 @@ await Expect(page).ToHaveTitleAsync("News");
|
||||||
|
|
||||||
[Page] object to use for assertions.
|
[Page] object to use for assertions.
|
||||||
|
|
||||||
## method: PlaywrightAssertions.setDefaultTimeout
|
## method: PlaywrightAssertions.setDefaultAssertionTimeout
|
||||||
* since: v1.25
|
* since: v1.25
|
||||||
* langs: java
|
* langs: java
|
||||||
|
|
||||||
Changes default timeout for Playwright assertions from 5 seconds to the speicified value.
|
Changes default timeout for Playwright assertions from 5 seconds to the speicified value.
|
||||||
|
|
||||||
```java
|
```java
|
||||||
PlaywrightAssertions.setDefaultTimeout(30_000);
|
PlaywrightAssertions.setDefaultAssertionTimeout(30_000);
|
||||||
```
|
```
|
||||||
|
|
||||||
### param: PlaywrightAssertions.setDefaultTimeout.timeout
|
### param: PlaywrightAssertions.setDefaultAssertionTimeout.timeout
|
||||||
* since: v1.25
|
* since: v1.25
|
||||||
- `timeout` <[float]>
|
- `timeout` <[float]>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue