mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: add waitForSelectorHidden (#8632)
This commit is contained in:
parent
e36f6da030
commit
25c8fc4229
@ -998,3 +998,18 @@ This method does not work across navigations, use [`method: Page.waitForSelector
|
||||
### option: ElementHandle.waitForSelector.timeout = %%-input-timeout-%%
|
||||
|
||||
### option: ElementHandle.waitForSelector.strict = %%-input-strict-%%
|
||||
|
||||
## async method: ElementHandle.waitForSelector
|
||||
* langs: python
|
||||
- returns: <[ElementHandle]>
|
||||
|
||||
## async method: ElementHandle.waitForSelectorHidden
|
||||
* langs: python, csharp
|
||||
|
||||
Returns when element specified by selector satisfies [`option: state`] option. See [`method: ElementHandle.waitForSelector`] for more information.
|
||||
|
||||
### param: ElementHandle.waitForSelectorHidden.selector = %%-query-selector-%%
|
||||
### option: ElementHandle.waitForSelectorHidden.state = %%-wait-for-selector-state-hidden-%%
|
||||
### option: ElementHandle.waitForSelectorHidden.timeout = %%-input-timeout-%%
|
||||
### option: ElementHandle.waitForSelectorHidden.strict = %%-input-strict-%%
|
||||
|
||||
|
||||
@ -1611,6 +1611,22 @@ class FrameExamples
|
||||
### option: Frame.waitForSelector.strict = %%-input-strict-%%
|
||||
### option: Frame.waitForSelector.timeout = %%-input-timeout-%%
|
||||
|
||||
|
||||
## async method: Frame.waitForSelector
|
||||
* langs: python
|
||||
- returns: <[ElementHandle]>
|
||||
|
||||
## async method: Frame.waitForSelectorHidden
|
||||
* langs: python, csharp
|
||||
|
||||
Returns when element specified by selector satisfies [`option: state`] option. See [`method: Frame.waitForSelector`] for more information.
|
||||
|
||||
### param: Frame.waitForSelectorHidden.selector = %%-query-selector-%%
|
||||
### option: Frame.waitForSelectorHidden.state = %%-wait-for-selector-state-hidden-%%
|
||||
### option: Frame.waitForSelectorHidden.strict = %%-input-strict-%%
|
||||
### option: Frame.waitForSelectorHidden.timeout = %%-input-timeout-%%
|
||||
|
||||
|
||||
## async method: Frame.waitForTimeout
|
||||
|
||||
Waits for the given [`param: timeout`] in milliseconds.
|
||||
|
||||
@ -3732,6 +3732,21 @@ class FrameExamples
|
||||
### option: Page.waitForSelector.strict = %%-input-strict-%%
|
||||
### option: Page.waitForSelector.timeout = %%-input-timeout-%%
|
||||
|
||||
## async method: Page.waitForSelector
|
||||
* langs: python
|
||||
- returns: <[ElementHandle]>
|
||||
|
||||
## async method: Page.waitForSelectorHidden
|
||||
* langs: python, csharp
|
||||
|
||||
Returns when element specified by selector satisfies [`option: state`] option. See [`method: Page.waitForSelector`] for more information.
|
||||
|
||||
### param: Page.waitForSelectorHidden.selector = %%-query-selector-%%
|
||||
### option: Page.waitForSelectorHidden.state = %%-wait-for-selector-state-hidden-%%
|
||||
### option: Page.waitForSelectorHidden.strict = %%-input-strict-%%
|
||||
### option: Page.waitForSelectorHidden.timeout = %%-input-timeout-%%
|
||||
|
||||
|
||||
## async method: Page.waitForTimeout
|
||||
|
||||
Waits for the given [`param: timeout`] in milliseconds.
|
||||
|
||||
@ -145,6 +145,14 @@ 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.
|
||||
|
||||
## wait-for-selector-state-hidden
|
||||
- `state` <[WaitForSelectorStateHidden]<"detached"|"hidden">>
|
||||
|
||||
Defaults to `'hidden'`. Can be either:
|
||||
* `'detached'` - wait for element to not be present in DOM.
|
||||
* `'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.
|
||||
|
||||
## js-python-wait-for-function-polling
|
||||
* langs: js, python
|
||||
- `polling` <[float]|"raf">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user