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

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

Sample usage:

     Boolean editable = actor.asksFor(Editable.of("#email"));
     Boolean editable = actor.asksFor(Editable.of(EMAIL_FIELD));
 
  • Method Summary

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

    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 Editable of(String selector)
      Check if an element identified by a selector is editable.
    • of

      public static Editable of(Target target)
      Check if a Target element is editable.
    • 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