Class LocatorAssertions.IsInViewportOptions
java.lang.Object
com.microsoft.playwright.assertions.LocatorAssertions.IsInViewportOptions
- Enclosing interface:
LocatorAssertions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetRatio(double ratio) The minimal ratio of the element to intersect viewport.setTimeout(double timeout) Time to retry the assertion for in milliseconds.
-
Field Details
-
ratio
The minimal ratio of the element to intersect viewport. If equals to0, then element should intersect viewport at any positive ratio. Defaults to0. -
timeout
Time to retry the assertion for in milliseconds. Defaults to5000.
-
-
Constructor Details
-
IsInViewportOptions
public IsInViewportOptions()
-
-
Method Details
-
setRatio
The minimal ratio of the element to intersect viewport. If equals to0, then element should intersect viewport at any positive ratio. Defaults to0. -
setTimeout
Time to retry the assertion for in milliseconds. Defaults to5000.
-