Package com.microsoft.playwright
Class Frame.WaitForURLOptions
java.lang.Object
com.microsoft.playwright.Frame.WaitForURLOptions
- Enclosing interface:
Frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionMaximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.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.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. -
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
-
WaitForURLOptions
public WaitForURLOptions()
-
-
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. -
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.
-
-