Class Ensure
java.lang.Object
net.serenitybdd.screenplay.playwright.assertions.Ensure
public class Ensure
extends java.lang.Object
Perform assertions about the state of elements located using Playwright selectors.
-
Constructor Summary
-
Method Summary
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(java.lang.String selector)static Ensurethat(Target target)EnsurewithTimeout(java.lang.Double timeout)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Ensure
-
-
Method Details
-
that
-
that
-
withTimeout
-
isVisible
Check whether the element is visible. A selector that does not match any elements is considered not visible. -
isHidden
Check whether the element is not visible. A selector that does not match any elements is considered not visible. -
isChecked
Check whether the element is checked. Throws if the element is not a checkbox or radio input. -
isNotChecked
Check whether the element is NOT checked. Throws if the element is not a checkbox or radio input. -
isEnabled
Check whether the element is enabled. -
isDisabled
Check whether the element is disabled. -
isEditable
Check whether the element is editable.
-