Class FrameWaitForSelectorOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class FrameWaitForSelectorOptions
- Inheritance
-
FrameWaitForSelectorOptions
- Inherited Members
Constructors
FrameWaitForSelectorOptions()
public FrameWaitForSelectorOptions()
FrameWaitForSelectorOptions(FrameWaitForSelectorOptions)
public FrameWaitForSelectorOptions(FrameWaitForSelectorOptions clone)
Parameters
Properties
State
Defaults to 'visible'
. Can be either:
'attached'
- wait for element to be present in DOM.'detached'
- wait for element to not be present in DOM.-
'visible'
- wait for element to have non-empty bounding box and novisibility:hidden
. Note that element without any content or withdisplay:none
has an empty bounding box and is not considered visible. -
'hidden'
- wait for element to be either detached from DOM, or have an empty bounding box orvisibility:hidden
. This is opposite to the'visible'
option.
[JsonPropertyName("state")]
public WaitForSelectorState? State { get; set; }
Property Value
Strict
When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
[JsonPropertyName("strict")]
public bool? Strict { get; set; }
Property Value
- bool?
Timeout
Maximum time in milliseconds. Defaults to 30000
(30 seconds). Pass 0
to disable timeout. The default value can be changed by using the SetDefaultTimeout(float)
or SetDefaultTimeout(float) methods.
[JsonPropertyName("timeout")]
public float? Timeout { get; set; }