Class Ensure
- java.lang.Object
-
- net.serenitybdd.screenplay.playwright.assertions.Ensure
-
public class Ensure extends Object
Perform assertions about the state of elements located using Playwright selectors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PerformableisChecked()Check whether the element is checked.PerformableisDisabled()Check whether the element is disabled.PerformableisEditable()Check whether the element is editable.PerformableisEnabled()Check whether the element is enabled.PerformableisHidden()Check whether the element is not visible.PerformableisNotChecked()Check whether the element is NOT checked.PerformableisVisible()Check whether the element is visible.static Ensurethat(String selector)static Ensurethat(Target target)EnsurewithTimeout(Double timeout)
-
-
-
Method Detail
-
isVisible
public Performable isVisible()
Check whether the element is visible. A selector that does not match any elements is considered not visible.
-
isHidden
public Performable isHidden()
Check whether the element is not visible. A selector that does not match any elements is considered not visible.
-
isChecked
public Performable isChecked()
Check whether the element is checked. Throws if the element is not a checkbox or radio input.
-
isNotChecked
public Performable isNotChecked()
Check whether the element is NOT checked. Throws if the element is not a checkbox or radio input.
-
isEnabled
public Performable isEnabled()
Check whether the element is enabled.
-
isDisabled
public Performable isDisabled()
Check whether the element is disabled.
-
isEditable
public Performable isEditable()
Check whether the element is editable.
-
-