Class Ensure


  • public class Ensure
    extends Object
    Perform assertions about the state of elements located using Playwright selectors.
    • Constructor Detail

    • Method Detail

      • withTimeout

        public Ensure withTimeout​(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.