Package com.microsoft.playwright
Class Frame.WaitForNavigationOptions
java.lang.Object
com.microsoft.playwright.Frame.WaitForNavigationOptions
- Enclosing interface:
Frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionMaximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.When to consider operation succeeded, defaults toload. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetTimeout(double timeout) Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.setWaitUntil(WaitUntilState waitUntil) When to consider operation succeeded, defaults toload.
-
Field Details
-
timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultNavigationTimeout(),BrowserContext.setDefaultTimeout(),Page.setDefaultNavigationTimeout()orPage.setDefaultTimeout()methods. -
url
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string. -
waitUntil
When to consider operation succeeded, defaults toload. Events can be either:-
"domcontentloaded"- consider operation to be finished when theDOMContentLoadedevent is fired. -
"load"- consider operation to be finished when theloadevent is fired. -
"networkidle"- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500ms. 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.
-
-
-
Constructor Details
-
WaitForNavigationOptions
public WaitForNavigationOptions()
-
-
Method Details
-
setTimeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultNavigationTimeout(),BrowserContext.setDefaultTimeout(),Page.setDefaultNavigationTimeout()orPage.setDefaultTimeout()methods. -
setUrl
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string. -
setUrl
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string. -
setUrl
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string. -
setWaitUntil
When to consider operation succeeded, defaults toload. Events can be either:-
"domcontentloaded"- consider operation to be finished when theDOMContentLoadedevent is fired. -
"load"- consider operation to be finished when theloadevent is fired. -
"networkidle"- **DISCOURAGED** consider operation to be finished when there are no network connections for at least500ms. 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.
-
-