Package com.microsoft.playwright
Class Frame.WaitForNavigationOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.WaitForNavigationOptions
-
-
Field Summary
Fields Modifier and Type Field Description String
glob
URL string, URL regex pattern or predicate receiving URL to match while waiting for the navigation.Pattern
pattern
Predicate<String>
predicate
Integer
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout.Frame.LoadState
waitUntil
When to consider operation succeeded, defaults toload
.
-
Constructor Summary
Constructors Constructor Description WaitForNavigationOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.WaitForNavigationOptions
withTimeout(Integer timeout)
Frame.WaitForNavigationOptions
withUrl(String glob)
Frame.WaitForNavigationOptions
withUrl(Predicate<String> predicate)
Frame.WaitForNavigationOptions
withUrl(Pattern pattern)
Frame.WaitForNavigationOptions
withWaitUntil(Frame.LoadState waitUntil)
-
-
-
Field Detail
-
timeout
public Integer timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0
to disable timeout. The default value can be changed by using the browserContext.setDefaultNavigationTimeout(timeout), browserContext.setDefaultTimeout(timeout), page.setDefaultNavigationTimeout(timeout) or page.setDefaultTimeout(timeout) methods.
-
glob
public String glob
URL string, URL regex pattern or predicate receiving URL to match while waiting for the navigation.
-
pattern
public Pattern pattern
-
waitUntil
public Frame.LoadState waitUntil
When to consider operation succeeded, defaults toload
. 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'
- consider operation to be finished when there are no network connections for at least500
ms.
-
-
Method Detail
-
withTimeout
public Frame.WaitForNavigationOptions withTimeout(Integer timeout)
-
withUrl
public Frame.WaitForNavigationOptions withUrl(String glob)
-
withUrl
public Frame.WaitForNavigationOptions withUrl(Pattern pattern)
-
withUrl
public Frame.WaitForNavigationOptions withUrl(Predicate<String> predicate)
-
withWaitUntil
public Frame.WaitForNavigationOptions withWaitUntil(Frame.LoadState waitUntil)
-
-