Class FrameWaitForNavigationOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class FrameWaitForNavigationOptions
- Inheritance
-
FrameWaitForNavigationOptions
- Inherited Members
Constructors
FrameWaitForNavigationOptions()
public FrameWaitForNavigationOptions()
FrameWaitForNavigationOptions(FrameWaitForNavigationOptions)
public FrameWaitForNavigationOptions(FrameWaitForNavigationOptions clone)
Parameters
Properties
Timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass 0
to
disable timeout. The default value can be changed by using the SetDefaultNavigationTimeout(float),
SetDefaultTimeout(float), SetDefaultNavigationTimeout(float)
or SetDefaultTimeout(float) methods.
[JsonPropertyName("timeout")]
public float? Timeout { get; set; }
Property Value
Url
A glob pattern, regex pattern or predicate receiving
[JsonPropertyName("url")]
public string? Url { get; set; }
Property Value
UrlFunc
A glob pattern, regex pattern or predicate receiving
[JsonPropertyName("urlFunc")]
public Func<string, bool>? UrlFunc { get; set; }
Property Value
UrlRegex
A glob pattern, regex pattern or predicate receiving
[JsonPropertyName("urlRegex")]
public Regex? UrlRegex { get; set; }
Property Value
UrlString
A glob pattern, regex pattern or predicate receiving
[JsonPropertyName("urlString")]
public string? UrlString { get; set; }
Property Value
WaitUntil
When to consider operation succeeded, defaults to load
. Events can be either:
-
'domcontentloaded'
- consider operation to be finished when theDOMContentLoaded
event is fired. -
'load'
- consider operation to be finished when theload
event is fired. -
'networkidle'
- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500
ms. Don't use this method for testing, rely on web assertions to assess readiness instead. -
'commit'
- consider operation to be finished when network response is received and the document started loading.
[JsonPropertyName("waitUntil")]
public WaitUntilState? WaitUntil { get; set; }