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 Details

    • Ensure

      public Ensure​(Target target, java.lang.Double timeout)
  • Method Details

    • that

      public static Ensure that​(java.lang.String selector)
    • that

      public static Ensure that​(Target target)
    • withTimeout

      public Ensure withTimeout​(java.lang.Double timeout)
    • 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.