Package com.microsoft.playwright
Class Page.WaitForURLOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.WaitForURLOptions
-
-
Field Summary
Fields Modifier and Type Field Description DoubletimeoutMaximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.WaitUntilStatewaitUntilWhen to consider operation succeeded, defaults toload.
-
Constructor Summary
Constructors Constructor Description WaitForURLOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.WaitForURLOptionssetTimeout(double timeout)Maximum operation time in milliseconds, defaults to 30 seconds, pass0to disable timeout.Page.WaitForURLOptionssetWaitUntil(WaitUntilState waitUntil)When to consider operation succeeded, defaults toload.
-
-
-
Field Detail
-
timeout
public Double 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
public WaitUntilState 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.
-
-
-
Method Detail
-
setTimeout
public Page.WaitForURLOptions setTimeout(double 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.
-
setWaitUntil
public Page.WaitForURLOptions setWaitUntil(WaitUntilState 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.
-
-
-