Package com.microsoft.playwright
Class Page.WaitForRequestFinishedOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.WaitForRequestFinishedOptions
-
-
Constructor Summary
Constructors Constructor Description WaitForRequestFinishedOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.WaitForRequestFinishedOptions
setPredicate(Predicate<Request> predicate)
Receives theRequest
object and resolves to truthy value when the waiting should resolve.Page.WaitForRequestFinishedOptions
setTimeout(double timeout)
Maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
predicate
public Predicate<Request> predicate
Receives theRequest
object and resolves to truthy value when the waiting should resolve.
-
timeout
public Double timeout
Maximum time to wait for in milliseconds. Defaults to30000
(30 seconds). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
.
-
-
Method Detail
-
setPredicate
public Page.WaitForRequestFinishedOptions setPredicate(Predicate<Request> predicate)
Receives theRequest
object and resolves to truthy value when the waiting should resolve.
-
setTimeout
public Page.WaitForRequestFinishedOptions setTimeout(double timeout)
Maximum time to wait for in milliseconds. Defaults to30000
(30 seconds). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
.
-
-