java.lang.Object
net.serenitybdd.screenplay.playwright.questions.Disabled
All Implemented Interfaces:
net.serenitybdd.screenplay.Question<Boolean>

public class Disabled extends Object implements net.serenitybdd.screenplay.Question<Boolean>
Check if an element is disabled.

Sample usage:

     Boolean disabled = actor.asksFor(Disabled.of("#button"));
     Boolean disabled = actor.asksFor(Disabled.of(SUBMIT_BUTTON));
 
  • Method Summary

    Modifier and Type
    Method
    Description
    answeredBy(net.serenitybdd.screenplay.Actor actor)
     
    static Disabled
    of(String selector)
    Check if an element identified by a selector is disabled.
    static Disabled
    of(Target target)
    Check if a Target element is disabled.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.serenitybdd.screenplay.Question

    as, asADate, asADate, asBigDecimal, asBoolean, asCollectionOf, asDouble, asEnum, asFloat, asInteger, asListOf, asLong, asString, describedAs, getSubject, map, mapEach
  • Method Details

    • of

      public static Disabled of(String selector)
      Check if an element identified by a selector is disabled.
    • of

      public static Disabled of(Target target)
      Check if a Target element is disabled.
    • answeredBy

      public Boolean answeredBy(net.serenitybdd.screenplay.Actor actor)
      Specified by:
      answeredBy in interface net.serenitybdd.screenplay.Question<Boolean>
    • toString

      public String toString()
      Overrides:
      toString in class Object